Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/corlib/System.Reflection/MonoField.cs')
-rwxr-xr-xmcs/class/corlib/System.Reflection/MonoField.cs99
1 files changed, 0 insertions, 99 deletions
diff --git a/mcs/class/corlib/System.Reflection/MonoField.cs b/mcs/class/corlib/System.Reflection/MonoField.cs
deleted file mode 100755
index 1c427e14164..00000000000
--- a/mcs/class/corlib/System.Reflection/MonoField.cs
+++ /dev/null
@@ -1,99 +0,0 @@
-
-//
-// System.Reflection/MonoField.cs
-// The class used to represent Fields from the mono runtime.
-//
-// Author:
-// Paolo Molaro (lupus@ximian.com)
-//
-// (C) 2001 Ximian, Inc. http://www.ximian.com
-//
-
-using System;
-using System.Globalization;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-namespace System.Reflection {
-
- internal struct MonoFieldInfo {
- public Type parent;
- public Type type;
- public String name;
- public FieldAttributes attrs;
-
- [MethodImplAttribute(MethodImplOptions.InternalCall)]
- internal static extern void get_field_info (MonoField field, out MonoFieldInfo info);
- }
-
- internal class MonoField : FieldInfo {
- internal IntPtr klass;
- internal RuntimeFieldHandle fhandle;
-
- public override FieldAttributes Attributes {
- get {
- MonoFieldInfo info;
- MonoFieldInfo.get_field_info (this, out info);
- return info.attrs;
- }
- }
- public override RuntimeFieldHandle FieldHandle {
- get {return fhandle;}
- }
-
- public override Type FieldType {
- get {
- MonoFieldInfo info;
- MonoFieldInfo.get_field_info (this, out info);
- return info.type;
- }
- }
-
- public override Type ReflectedType {
- get {
- MonoFieldInfo info;
- MonoFieldInfo.get_field_info (this, out info);
- return info.parent;
- }
- }
- public override Type DeclaringType {
- get {
- MonoFieldInfo info;
- MonoFieldInfo.get_field_info (this, out info);
- return info.parent;
- }
- }
- public override string Name {
- get {
- MonoFieldInfo info;
- MonoFieldInfo.get_field_info (this, out info);
- return info.name;
- }
- }
-
- public override bool IsDefined (Type attributeType, bool inherit) {
- return MonoCustomAttrs.IsDefined (this, attributeType, inherit);
- }
-
- public override object[] GetCustomAttributes( bool inherit) {
- return MonoCustomAttrs.GetCustomAttributes (this, inherit);
- }
- public override object[] GetCustomAttributes( Type attributeType, bool inherit) {
- return MonoCustomAttrs.GetCustomAttributes (this, attributeType, inherit);
- }
-
- [MethodImplAttribute(MethodImplOptions.InternalCall)]
- public extern override object GetValue(object obj);
-
- public override string ToString () {
- MonoFieldInfo info;
- MonoFieldInfo.get_field_info (this, out info);
- return String.Format ("{0} {1}", info.type, info.name);
- }
-
- [MonoTODO]
- public override void SetValue (object obj, object val, BindingFlags invokeAttr, Binder binder, CultureInfo culture)
- {
- }
- }
-}