5 // Cesar Lopez Nataren (cesar@ciencias.unam.mx)
7 // (C) 2003, Cesar Lopez Nataren
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 using System.Reflection;
33 using System.Globalization;
35 namespace Microsoft.JScript {
37 public sealed class JSFieldInfo : FieldInfo {
39 private FieldAttributes attr;
43 internal JSFieldInfo (string name)
48 public override FieldAttributes Attributes {
53 public override Type DeclaringType {
54 get { throw new NotImplementedException (); }
58 public override RuntimeFieldHandle FieldHandle {
59 get { throw new NotImplementedException (); }
63 public override Type FieldType {
64 get { throw new NotImplementedException (); }
68 public override object [] GetCustomAttributes (Type t, bool inherit)
70 throw new NotImplementedException ();
74 public override object [] GetCustomAttributes (bool inherit)
76 throw new NotImplementedException ();
80 public override object GetValue (object obj)
82 string str_name = Convert.ToString (obj);
87 throw new NotImplementedException ();
91 public override bool IsDefined (Type type, bool inherit)
93 throw new NotImplementedException ();
97 public override MemberTypes MemberType {
98 get { throw new NotImplementedException (); }
102 public override string Name {
107 public override Type ReflectedType {
108 get { throw new NotImplementedException (); }
112 public new void SetValue (object obj, object value)
114 string str_name = Convert.ToString (obj);
115 if (str_name == name)
118 Console.WriteLine ("arg {0} != name {1}", str_name, name);
119 throw new NotImplementedException ();
124 public override void SetValue (object obj, object value, BindingFlags invokeAttr,
125 System.Reflection.Binder binder, CultureInfo culture)
127 SetValue (obj, value);
130 #if NET_2_0 || BOOTSTRAP_NET_2_0
131 public override FieldInfo Mono_GetGenericFieldDefinition ()
133 throw new NotImplementedException ();