Inazuma.PetitClr.Core.Structure.ObjectInstance.GetInstanceOrCopiedValue C# (CSharp) Метод

GetInstanceOrCopiedValue() публичный Метод

public GetInstanceOrCopiedValue ( ) : ObjectInstance
Результат ObjectInstance
        public ObjectInstance GetInstanceOrCopiedValue()
        {
            if (Type == CorInfoType.Class || Type == CorInfoType.String)
            {
                return this;
            }

            // Copy ValueType or Primitive
            return new ObjectInstance() { I = I, R = R, Type = Type, MethodTable = MethodTable, FieldInstances = (FieldInstances != null) ? FieldInstances.Select(x => x).ToArray() : null };
        }