System.RuntimeFieldHandle.IsNullHandle C# (CSharp) Method

IsNullHandle() private method

private IsNullHandle ( ) : bool
return bool
        internal bool IsNullHandle() 
        { 
            return m_ptr.ToPointer() == null; 
        }

Usage Example

Beispiel #1
0
        public static FieldInfo GetFieldFromHandle(RuntimeFieldHandle handle, RuntimeTypeHandle declaringType)
        {
            if (handle.IsNullHandle())
                throw new ArgumentException(Environment.GetResourceString("Argument_InvalidHandle"));

            return RuntimeType.GetFieldInfo(declaringType.GetRuntimeType(), handle.GetRuntimeFieldInfo());
        }           
All Usage Examples Of System.RuntimeFieldHandle::IsNullHandle