/// <summary> /// Determines whether the specified <see cref="System.Object"/> is equal to this instance. /// </summary> /// <param name="obj">The <see cref="System.Object"/> to compare with this instance.</param> /// <returns> /// <c>true</c> if the specified <see cref="System.Object"/> is equal to this instance; otherwise, <c>false</c>. /// </returns> public override bool Equals(object obj) { InteropType against = obj as InteropType; if (against == null) { return(false); } return(Type == against.Type && _typeName == against._typeName); }
public InteropMethodSignatureParameter(InteropType interopType, CsMarshalCallableBase item, string?name = null) { InteropType = interopType ?? throw new ArgumentNullException(nameof(interopType)); Item = item ?? throw new ArgumentNullException(nameof(item)); Name = name ?? Wrap(item.Name ?? throw new ArgumentNullException(nameof(item))); InteropTypeSyntax = ParseTypeName(InteropType.TypeName);