예제 #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;
 }