Beispiel #1
0
        internal TypeReference(IToken token, Module module) : base(TypeKind.TypeReference)
        {
            m_token = token.CheckValid("token", x => x.Table.CanReferenceType(), "Token references invalid table");

            m_module = module.CheckNotNull("module");
            if (m_token.Table == MetadataTable.TypeRef)
            {
                m_lockObject = new object();
            }
        }
Beispiel #2
0
        internal TypeReference(IToken token, Module module)
            : base(TypeKind.TypeReference)
        {
            m_token = token.CheckValid("token", x => x.Table.CanReferenceType(), "Token references invalid table");

            m_module = module.CheckNotNull("module");
            if (m_token.Table == MetadataTable.TypeRef) {
                m_lockObject = new object();
            }
        }