Equals() private method

private Equals ( MetadataImport import ) : bool
import MetadataImport
return bool
Ejemplo n.º 1
0
        private RuntimeParameterInfo(
            Signature signature,
            MetadataImport scope,
            int tkParamDef,
            int position,
            ParameterAttributes attributes,
            MemberInfo member
            )
        {
            Debug.Assert(member != null);
            Debug.Assert(
                MdToken.IsNullToken(tkParamDef) == scope.Equals(MetadataImport.EmptyImport)
                );
            Debug.Assert(
                MdToken.IsNullToken(tkParamDef) ||
                MdToken.IsTokenOfType(tkParamDef, MetadataTokenType.ParamDef)
                );

            PositionImpl = position;
            MemberImpl   = member;
            m_signature  = signature;
            m_tkParamDef = MdToken.IsNullToken(tkParamDef)
              ? (int)MetadataTokenType.ParamDef
              : tkParamDef;
            m_scope   = scope;
            AttrsImpl = attributes;

            ClassImpl = null;
            NameImpl  = null;
        }
Ejemplo n.º 2
0
        private RuntimeParameterInfo(
            Signature signature, MetadataImport scope, int tkParamDef,
            int position, ParameterAttributes attributes, MemberInfo member)
        {
            Contract.Requires(member != null);
            Contract.Assert(MdToken.IsNullToken(tkParamDef) == scope.Equals(MetadataImport.EmptyImport));
            Contract.Assert(MdToken.IsNullToken(tkParamDef) || MdToken.IsTokenOfType(tkParamDef, MetadataTokenType.ParamDef));

            PositionImpl = position;
            MemberImpl = member;
            m_signature = signature;
            m_tkParamDef = MdToken.IsNullToken(tkParamDef) ? (int)MetadataTokenType.ParamDef : tkParamDef;
            m_scope = scope;
            AttrsImpl = attributes;

            ClassImpl = null;
            NameImpl = null;
        }
Ejemplo n.º 3
0
        private ParameterInfo(
            Signature signature, MetadataImport scope, int tkParamDef, 
            int position, ParameterAttributes attributes, MemberInfo member) 
        {
            ASSERT.PRECONDITION(member != null);
            ASSERT.PRECONDITION(LOGIC.BIJECTION(MdToken.IsNullToken(tkParamDef), scope.Equals(null)));
            ASSERT.PRECONDITION(LOGIC.IMPLIES(!MdToken.IsNullToken(tkParamDef), 
                MdToken.IsTokenOfType(tkParamDef, MetadataTokenType.ParamDef)));

            PositionImpl = position;
            MemberImpl = member;
            m_signature = signature;
            m_tkParamDef = MdToken.IsNullToken(tkParamDef) ? (int)MetadataTokenType.ParamDef : tkParamDef;
            m_scope = scope;
            AttrsImpl = attributes;

            ClassImpl = null;
            NameImpl = null;
        }