Exemplo n.º 1
0
 private Signature([NotNull] TypeRefBase returnType, [NotNull] string name, [NotNull] IReadOnlyList <TypeRefBase> genericArguments, [NotNull] IReadOnlyList <TypeRefBase> arguments)
 {
     _returnType       = returnType ?? throw new ArgumentNullException(nameof(returnType));
     _genericArguments = genericArguments ?? throw new ArgumentNullException(nameof(genericArguments));
     _arguments        = arguments ?? throw new ArgumentNullException(nameof(arguments));
     _name             = name ?? throw new ArgumentNullException(nameof(name));
 }
Exemplo n.º 2
0
 protected bool Equals([NotNull] TypeRefBase other)
 {
     return(_genericArguments.SequenceEqual(other._genericArguments));
 }