Beispiel #1
0
 public override void ReadRest(ReaderContext ctxt, BlobReader reader)
 {
     Applicand = Read(ctxt, reader);
     var argCount = (int)reader.ReadCompressedUInt32();
     var arguments = new Seq<TypeSig>(argCount);
     for (var i = 0; i < argCount; i++)
         arguments.Add(Read(ctxt, reader));
     Arguments = arguments;
 }
Beispiel #2
0
 public override void ReadRest(ReaderContext ctxt, BlobReader reader)
 {
     ElementType = Read(ctxt, reader);
 }
Beispiel #3
0
 public override void ReadRest(ReaderContext ctxt, BlobReader reader)
 {
     ElementType = Read(ctxt, reader);
     Rank = (int)reader.ReadCompressedUInt32();
     var numSizes = (int)reader.ReadCompressedUInt32();
     var sizes = new Seq<uint>(numSizes);
     for (var i = 0; i < numSizes; i++)
         sizes.Add(reader.ReadCompressedUInt32());
     Sizes = sizes;
     var numLoBounds = (int)reader.ReadCompressedUInt32();
     var loBounds = new Seq<uint>(numLoBounds);
     for (var i = 0; i < numLoBounds; i++)
         loBounds.Add(reader.ReadCompressedUInt32());
     LoBounds = loBounds;
 }
Beispiel #4
0
 public void Read(ReaderContext ctxt, BlobReader reader)
 {
     var customMods = default(Seq<CustomModPseudoTypeSig>);
     var type = TypeSig.Read(ctxt, reader);
     while (type.IsCustomMod)
     {
         if (customMods == null)
             customMods = new Seq<CustomModPseudoTypeSig>();
         customMods.Add((CustomModPseudoTypeSig)type);
         type = TypeSig.Read(ctxt, reader);
     }
     CustomMods = customMods ?? Constants.EmptyCustomModSigs;
     Type = type;
 }