Пример #1
0
 /// <summary>
 /// Gets the instance for the provided error.
 /// </summary>
 /// <param name="error">The error.</param>
 /// <returns>The invalid type reference instance.</returns>
 public static InvalidTypeDefOrRef Get(InvalidTypeSignatureError error)
 {
     if (!Instances.TryGetValue(error, out var instance))
     {
         Instances[error] = instance = new InvalidTypeDefOrRef(error);
     }
     return(instance);
 }
Пример #2
0
 private InvalidTypeDefOrRef(InvalidTypeSignatureError error)
     : base(new MetadataToken(TableIndex.TypeRef, 0))
 {
     Error = error;
 }
Пример #3
0
 private InvalidTypeDefOrRef(InvalidTypeSignatureError error)
 {
     Error = error;
 }