Beispiel #1
0
 public GenericTypeArgumentsEncoder GenericInstantiation(bool isValueType, EntityHandle typeRefDefSpec, int genericArgumentCount)
 {
     Builder.WriteByte((byte)SignatureTypeCode.GenericTypeInstance);
     ClassOrValue(isValueType);
     Builder.WriteCompressedInteger(CodedIndex.ToTypeDefOrRefOrSpec(typeRefDefSpec));
     Builder.WriteCompressedInteger(genericArgumentCount);
     return(new GenericTypeArgumentsEncoder(Builder));
 }
Beispiel #2
0
        public CustomModifiersEncoder AddModifier(bool isOptional, EntityHandle typeDefRefSpec)
        {
            if (isOptional)
            {
                Builder.WriteByte((byte)SignatureTypeCode.OptionalModifier);
            }
            else
            {
                Builder.WriteByte((byte)SignatureTypeCode.RequiredModifier);
            }

            Builder.WriteCompressedInteger(CodedIndex.ToTypeDefOrRefOrSpec(typeDefRefSpec));
            return(this);
        }
Beispiel #3
0
 public void TypeDefOrRefOrSpec(bool isValueType, EntityHandle typeRefDefSpec)
 {
     ClassOrValue(isValueType);
     Builder.WriteCompressedInteger(CodedIndex.ToTypeDefOrRefOrSpec(typeRefDefSpec));
 }