Пример #1
0
        public static object LoadValueTypeFieldValueFromValueType(TypedReference typedReference, int fieldOffset, RuntimeTypeHandle fieldTypeHandle)
        {
            Debug.Assert(TypedReference.TargetTypeToken(typedReference).ToEETypePtr().IsValueType);
            Debug.Assert(fieldTypeHandle.ToEETypePtr().IsValueType);

            return(RuntimeImports.RhBox(fieldTypeHandle.ToEETypePtr(), ref Unsafe.Add <byte>(ref typedReference.Value, fieldOffset)));
        }
Пример #2
0
        public static void StoreReferenceTypeFieldValueIntoValueType(TypedReference typedReference, int fieldOffset, object fieldValue)
        {
            Debug.Assert(TypedReference.TargetTypeToken(typedReference).ToEETypePtr().IsValueType);

            Unsafe.As <byte, object>(ref Unsafe.Add <byte>(ref typedReference.Value, fieldOffset)) = fieldValue;
        }
Пример #3
0
        public static void StoreValueTypeFieldValueIntoValueType(TypedReference typedReference, int fieldOffset, object fieldValue, RuntimeTypeHandle fieldTypeHandle)
        {
            Debug.Assert(TypedReference.TargetTypeToken(typedReference).ToEETypePtr().IsValueType);

            RuntimeImports.RhUnbox(fieldValue, ref Unsafe.Add <byte>(ref typedReference.Value, fieldOffset), fieldTypeHandle.ToEETypePtr());
        }
Пример #4
0
 public override object GetValueDirect(TypedReference obj)
 {
     return(this.GetValue((object)null));
 }
Пример #5
0
 public virtual object GetValueDirect(TypedReference obj)
 {
     throw new NotSupportedException(SR.NotSupported_AbstractNonCLS);
 }
Пример #6
0
 public override void SetValueDirect(TypedReference obj, Object value)
 {
     throw new FieldAccessException(Environment.GetResourceString("Acc_ReadOnly"));
 }
Пример #7
0
 void _FieldInfo.SetValueDirect(TypedReference obj, object value)
 {
     throw new NotImplementedException();
 }
Пример #8
0
 extern public override void SetValueDirect
     (TypedReference obj, Object value);
Пример #9
0
 public override void SetValueDirect(TypedReference obj, object value)
 {
     throw new FieldAccessException(SR.Acc_ReadOnly);
 }
Пример #10
0
 internal extern void SetValueDirectImpl(TypedReference obj, Object value, bool requiresAccessCheck);
Пример #11
0
 extern public override object GetValueDirect(TypedReference obj);
Пример #12
0
 internal extern Object GetValueDirectImpl(TypedReference obj, bool requiresAccessCheck);
Пример #13
0
 public override void SetValueDirect(TypedReference obj, Object value)
 {
     SetValueDirectImpl(obj, value, true);
 }
Пример #14
0
 public override Object GetValueDirect(TypedReference obj)
 {
     return(GetValueDirectImpl(obj, true));
 }
Пример #15
0
        public static object LoadReferenceTypeFieldValueFromValueType(TypedReference typedReference, int fieldOffset)
        {
            Debug.Assert(TypedReference.TargetTypeToken(typedReference).ToEETypePtr().IsValueType);

            return(Unsafe.As <byte, object>(ref Unsafe.Add <byte>(ref typedReference.Value, fieldOffset)));
        }
Пример #16
0
 public virtual object GetValueDirect(TypedReference obj)
 {
     throw new NotImplementedException();
 }
Пример #17
0
 public override Object GetValueDirect(TypedReference obj)
 {
     return(GetValue(null));
 }
Пример #18
0
 public virtual void SetValueDirect(TypedReference obj, object value)
 {
     throw new NotImplementedException();
 }
Пример #19
0
 public virtual Object GetValueDirect(TypedReference obj)
 {
     throw new NotSupportedException(Environment.GetResourceString("NotSupported_AbstractNonCLS"));
 }
Пример #20
0
 object _FieldInfo.GetValueDirect(TypedReference obj)
 {
     throw new NotImplementedException();
 }