17 [__DynamicallyInvokable]
21 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.MayFail)]
23 [__DynamicallyInvokable]
30 [__DynamicallyInvokable]
40 [__DynamicallyInvokable]
41 public virtual bool Equals(
object obj)
51 [__DynamicallyInvokable]
52 public static bool Equals(
object objA,
object objB)
58 if (objA ==
null || objB ==
null)
62 return objA.Equals(objB);
70 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
72 [__DynamicallyInvokable]
80 [__DynamicallyInvokable]
89 [SecuritySafeCritical]
90 [__DynamicallyInvokable]
94 [ReliabilityContract(
Consistency.WillNotCorruptState,
Cer.Success)]
96 [__DynamicallyInvokable]
104 [SecuritySafeCritical]
105 [__DynamicallyInvokable]
109 private void FieldSetter(
string typeName,
string fieldName,
object val)
111 FieldInfo fieldInfo = GetFieldInfo(typeName, fieldName);
114 throw new FieldAccessException(Environment.GetResourceString(
"FieldAccess_InitOnly"));
120 private void FieldGetter(
string typeName,
string fieldName, ref
object val)
122 FieldInfo fieldInfo = GetFieldInfo(typeName, fieldName);
126 private FieldInfo GetFieldInfo(
string typeName,
string fieldName)
129 while (
null != type && !type.FullName.Equals(typeName))
131 type = type.BaseType;
virtual int GetHashCode()
Serves as the default hash function.
abstract Type FieldType
Gets the type of this field object.
static int GetHashCode(object o)
Serves as a hash function for a particular object, and is suitable for use in algorithms and data str...
object MemberwiseClone()
Creates a shallow copy of the current T:System.Object.
Supports all classes in the .NET Framework class hierarchy and provides low-level services to derived...
Discovers the attributes of a field and provides access to field metadata.
BindingFlags
Specifies flags that control binding and the way in which the search for members and types is conduct...
override string ToString()
Returns a String representing the name of the current Type.
bool IsInitOnly
Gets a value indicating whether the field can only be set in the body of the constructor.
abstract object GetValue(object obj)
When overridden in a derived class, returns the value of a field supported by a given object.
Cer
Specifies a method's behavior when called within a constrained execution region.
Type GetType()
Gets the T:System.Type of the current instance.
virtual bool Equals(object obj)
Determines whether the specified object is equal to the current object.
static new bool Equals(object o1, object o2)
Determines whether the specified T:System.Object instances are considered equal.
static bool Equals(object objA, object objB)
Determines whether the specified object instances are considered equal.
Represents type declarations: class types, interface types, array types, value types,...
MethodImplOptions
Defines the details of how a method is implemented.
Indicates that data in the pipe is transmitted and read as a stream of messages.
Object()
Initializes a new instance of the T:System.Object class.
static CultureInfo CurrentCulture
Gets or sets the T:System.Globalization.CultureInfo object that represents the culture used by the cu...
virtual string ToString()
Returns a string that represents the current object.
abstract void SetValue(object obj, object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture)
When overridden in a derived class, sets the value of the field supported by the given object.
Specifies that the class can be serialized.
ClassInterfaceType
Identifies the type of class interface that is generated for a class.
Consistency
Specifies a reliability contract.
Provides information about a specific culture (called a locale for unmanaged code development)....
static bool ReferenceEquals(object objA, object objB)
Determines whether the specified T:System.Object instances are the same instance.
The exception that is thrown when something has gone wrong during remoting.
Provides a set of static methods and properties that provide support for compilers....