Exemplo n.º 1
0
        private TypeRefMask GetPrimitiveTypeRefMask(PrimitiveTypeRef /*!*/ typeref)
        {
            // primitive type cannot include subclasses
            var index = AddToContext(typeref);

            return(TypeRefMask.CreateFromTypeIndex(index));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Does not lookup existing types whether there is typeref already.
 /// </summary>
 private TypeRefMask GetPrimitiveTypeRefMaskNoCheck(PrimitiveTypeRef /*!*/ typeref)
 {
     if (this.Types.Count < TypeRefMask.IndicesCount)
     {
         var index = AddToContextNoCheck(typeref);
         return(TypeRefMask.CreateFromTypeIndex(index));
     }
     else
     {
         return(TypeRefMask.AnyType);
     }
 }