33 public override bool Equals([NotNullWhen(
true)]
object?
obj)
40 if ((
object)
other ==
null)
62 : this(identifier, version, null)
68 if (identifier ==
null)
72 identifier = identifier.Trim();
73 if (identifier.Length == 0)
83 _profile = ((profile ==
null) ?
string.
Empty : profile.Trim());
88 if (frameworkName ==
null)
92 if (frameworkName.Length == 0)
96 string[]
array = frameworkName.Split(
',');
108 for (
int i = 1; i <
array.Length; i++)
111 int num =
text.IndexOf(
'=');
112 if (num == -1 || num !=
text.LastIndexOf(
'='))
140 if (
input.Length > 0)
154 return left?.
Equals(right) ?? ((object)right ==
null);
159 return !(left == right);
static bool Equals(this ReadOnlySpan< char > span, ReadOnlySpan< char > other, StringComparison comparisonType)
FrameworkName(string identifier, Version version)
override string ToString()
bool Equals([NotNullWhen(true)] FrameworkName? other)
static bool operator==(FrameworkName? left, FrameworkName? right)
readonly Version _version
FrameworkName(string frameworkName)
override bool Equals([NotNullWhen(true)] object? obj)
FrameworkName(string identifier, Version version, string? profile)
readonly string _identifier
static bool operator!=(FrameworkName? left, FrameworkName? right)
override int GetHashCode()
static string Argument_FrameworkNameInvalidVersion
static string Argument_FrameworkNameInvalid
static string Argument_FrameworkNameTooShort
static string Format(string resourceFormat, object p1)
static string Argument_FrameworkNameMissingVersion
static string net_emptystringcall
Version(int major, int minor, int build, int revision)
static Version Parse(string input)
override int GetHashCode()