/// <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); }
private InvalidTypeDefOrRef(InvalidTypeSignatureError error) : base(new MetadataToken(TableIndex.TypeRef, 0)) { Error = error; }
private InvalidTypeDefOrRef(InvalidTypeSignatureError error) { Error = error; }