Class FamilyNameCollection
public sealed class FamilyNameCollection : IReadOnlyList<string>, IReadOnlyCollection<string>, IEnumerable<string>, IEnumerable
- Inheritance
-
FamilyNameCollection
- Implements
- Inherited Members
Constructors
FamilyNameCollection(string)
Initializes a new instance of the FamilyNameCollection class.
public FamilyNameCollection(string familyNames)
Parameters
familyNames
stringThe family names.
Exceptions
- ArgumentException
familyNames
Properties
Count
public int Count { get; }
Property Value
HasFallbacks
Gets a value indicating whether fallbacks are defined.
public bool HasFallbacks { get; }
Property Value
- bool
true
if fallbacks are defined; otherwise,false
.
this[int]
public string this[int index] { get; }
Parameters
index
int
Property Value
PrimaryFamilyName
Gets the primary family name.
public string PrimaryFamilyName { get; }
Property Value
- string
The primary family name.
Methods
Equals(object?)
Determines whether the specified object, is equal to this instance.
public override bool Equals(object? obj)
Parameters
Returns
GetEnumerator()
Returns an enumerator for the name collection.
public ImmutableReadOnlyListStructEnumerator<string> GetEnumerator()
Returns
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()
Returns
- int
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
ToString()
Returns a string that represents this instance.
public override string ToString()
Returns
Operators
operator ==(FamilyNameCollection?, FamilyNameCollection?)
public static bool operator ==(FamilyNameCollection? a, FamilyNameCollection? b)
Parameters
Returns
operator !=(FamilyNameCollection?, FamilyNameCollection?)
public static bool operator !=(FamilyNameCollection? a, FamilyNameCollection? b)