System.Reflection.RuntimeMethodInfo.GetObjectData C# (CSharp) Method

GetObjectData() public method

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

            if (m_reflectedTypeCache.IsGlobal)
                throw new NotSupportedException(Environment.GetResourceString("NotSupported_GlobalMethodSerialization"));

            MemberInfoSerializationHolder.GetSerializationInfo(
            info, Name,  ReflectedTypeHandle.GetRuntimeType(), ToString(), MemberTypes.Method, 
                IsGenericMethod & !IsGenericMethodDefinition ? GetGenericArguments() : null);
        }
        #endregion