System.RuntimeTypeHandle.GetObjectData C# (CSharp) Method

GetObjectData() public method

public GetObjectData ( SerializationInfo info, StreamingContext context ) : void
info SerializationInfo
context StreamingContext
return void
        public void GetObjectData(SerializationInfo info, StreamingContext context) 
        {
            if(info == null) 
                throw new ArgumentNullException("info");

            if(m_ptr.ToPointer() == null)
                throw new SerializationException(Environment.GetResourceString("Serialization_InvalidFieldState")); 

            RuntimeType type = (RuntimeType)Type.GetTypeFromHandle(this); 

            info.AddValue("TypeObj", type, typeof(RuntimeType));
        }
    }