Struct FileDialogFilter
public readonly struct FileDialogFilter : IEquatable<FileDialogFilter>, ISpanFormattable, IFormattable, IEqualityOperators<FileDialogFilter, FileDialogFilter, bool>
- Implements
- Inherited Members
Constructors
FileDialogFilter(string, string)
[SetsRequiredMembers]
public FileDialogFilter(string name, string pattern)
Parameters
Properties
Name
public required string Name { get; init; }
Property Value
Pattern
public required string Pattern { get; init; }
Property Value
Methods
Deconstruct(out string, out string)
public void Deconstruct(out string name, out string pattern)
Parameters
Equals(in FileDialogFilter)
public bool Equals(in FileDialogFilter other)
Parameters
otherFileDialogFilter
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
TryFormat(Span<char>, out int)
public bool TryFormat(Span<char> destination, out int charsWritten)
Parameters
Returns
Operators
operator ==(in FileDialogFilter, in FileDialogFilter)
public static bool operator ==(in FileDialogFilter left, in FileDialogFilter right)
Parameters
leftFileDialogFilterrightFileDialogFilter
Returns
operator !=(in FileDialogFilter, in FileDialogFilter)
public static bool operator !=(in FileDialogFilter left, in FileDialogFilter right)
Parameters
leftFileDialogFilterrightFileDialogFilter