84 references to Parse
System.Formats.Nrbf (5)
System\Formats\Nrbf\BinaryLibraryRecord.cs (1)
33
public override TypeName TypeName => TypeName.
Parse
(nameof(BinaryLibraryRecord).AsSpan());
System\Formats\Nrbf\MessageEndRecord.cs (1)
27
public override TypeName TypeName => TypeName.
Parse
(nameof(MessageEndRecord).AsSpan());
System\Formats\Nrbf\NullsRecord.cs (1)
15
public override TypeName TypeName => TypeName.
Parse
(GetType().Name.AsSpan());
System\Formats\Nrbf\SerializedStreamHeaderRecord.cs (1)
27
public override TypeName TypeName => TypeName.
Parse
(nameof(SerializedStreamHeaderRecord).AsSpan());
System\Formats\Nrbf\Utils\TypeNameHelpers.cs (1)
53
s_primitiveTypeNames[(int)primitiveType] = typeName = TypeName.
Parse
(fullName.AsSpan()).WithCoreLibAssemblyName();
System.Windows.Forms (3)
System\Windows\Forms\Internal\TypeExtensions.cs (1)
252
return TypeName.
Parse
($"{GetTypeFullName(type)}, {assemblyName}");
System\Windows\Forms\OLE\DataObject.Composition.Binder.cs (2)
246
TypeName parsed = TypeName.
Parse
($"{typeName}, {assemblyName}");
274
typeName ??= TypeName.
Parse
($"{fullTypeName}, {assemblyName}");
System.Windows.Forms.Tests (76)
System\Resources\ResXSerializationBinderTests.cs (1)
88
TypeName parsed = TypeName.
Parse
($"{typeof(Form).FullName}, {typeof(Form).Assembly.FullName}");
System\Windows\Forms\BinaryFormatUtilitiesTests.cs (2)
1001
(typeof(MyClass1), TypeName.
Parse
(typeof(MyClass1).AssemblyQualifiedName)),
1002
(typeof(MyClass2), TypeName.
Parse
(typeof(MyClass2).AssemblyQualifiedName))
System\Windows\Forms\TypeExtensionsTests.cs (39)
18
{ typeof(int), TypeName.
Parse
(typeof(int).AssemblyQualifiedName), false },
19
{ typeof(int), TypeName.
Parse
($"System.Int32, {Mscorlib}"), true },
20
{ typeof(int?), TypeName.
Parse
($"System.Int32, {Mscorlib}"), true },
21
{ typeof(int?[]), TypeName.
Parse
($"System.Nullable`1[[System.Int32, {Mscorlib}]][], {Mscorlib}"), true},
22
{ typeof(DayOfWeek), TypeName.
Parse
($"System.Nullable`1[[System.DayOfWeek, {Mscorlib}]], {Mscorlib}"), false },
23
{ typeof(Bitmap), TypeName.
Parse
("System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), true },
25
{ typeof(Bitmap), TypeName.
Parse
("System.Drawing.Bitmap, System.Drawing, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), true },
27
{ typeof(Bitmap), TypeName.
Parse
("System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f1AAAAAAA"), false },
29
{ typeof(Bitmap), TypeName.
Parse
("System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=en-US, PublicKeyToken=b03f5f7f11d50a3a"), false },
31
{ typeof(Bitmap), TypeName.
Parse
("System.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), false },
32
{ typeof(Bitmap), TypeName.
Parse
("System.Drawing.MyBitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), false },
33
{ typeof(Bitmap?[]), TypeName.
Parse
("System.Drawing.Bitmap[], System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), true },
34
{ typeof(Dictionary<string, Bitmap>), TypeName.
Parse
($"System.Collections.Generic.Dictionary`2[[System.String, {Mscorlib}],[System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]], {Mscorlib}"), true },
35
{ typeof(Dictionary<string, Bitmap?>), TypeName.
Parse
($"System.Collections.Generic.Dictionary`2[[System.String, {Mscorlib}],[System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]], {Mscorlib}"), true },
36
{ typeof(NonForwardedType), TypeName.
Parse
("System.Windows.Forms.Tests.TypeExtensionsTests.NonForwardedType"), false },
38
{ typeof(NonForwardedType), TypeName.
Parse
("System.Windows.Forms.Tests.TypeExtensionstests+NonForwardedType"), false },
40
{ typeof(NonForwardedType), TypeName.
Parse
("System.Windows.Forms.Tests.TypeExtensionsTests+NonForwardedType"), false },
41
{ typeof(NonForwardedType), TypeName.
Parse
("System.Windows.Forms.Tests.TypeExtensionsTests+NonForwardedType, System.Windows.Forms.Tests"), false },
43
{ typeof(NonForwardedType), TypeName.
Parse
("System.Windows.Forms.Tests.TypeExtensionsTests+NonForwardedType, System.windows.Forms.Tests, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"), true },
45
{ typeof(NonForwardedType), TypeName.
Parse
("System.Windows.Forms.Tests.typeExtensionsTests+NonForwardedType, System.Windows.Forms.Tests"), false },
46
{ typeof(ForwardedType), TypeName.
Parse
("System.Windows.Forms.Tests.TypeExtensionsTests+ForwardedType, Abc"), true },
57
{ TypeName.
Parse
($"System.Int32, {Mscorlib}"), TypeName.
Parse
($"System.Int32, {Mscorlib}"), true },
58
{ TypeName.
Parse
($"System.Int32, {Mscorlib}"), TypeName.
Parse
($"System.String, {Mscorlib}"), false },
59
{ TypeName.
Parse
($"System.Collections.Generic.Dictionary`2[[System.String, {Mscorlib}],[System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]], {Mscorlib}"), TypeName.
Parse
($"System.Collections.Generic.Dictionary`2[[System.String, {Mscorlib}],[System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]], {Mscorlib}"), true },
60
{ TypeName.
Parse
($"System.Collections.Generic.Dictionary`2[[System.String, {Mscorlib}],[System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]], {Mscorlib}"), TypeName.
Parse
($"System.Collections.Generic.Dictionary`2[[System.String, {Mscorlib}],[System.Drawing.Bitmap, System.Drawing, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]], {Mscorlib}"), false },
61
{ TypeName.
Parse
($"System.Collections.Generic.Dictionary`2[[System.String, {Mscorlib}],[System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]], {Mscorlib}"), TypeName.
Parse
($"System.Collections.Generic.Dictionary`2[[System.String, {Mscorlib}],[System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]], mscorlib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"), false },
62
{ TypeName.
Parse
($"System.Drawing.Bitmap[], System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), TypeName.
Parse
($"System.Drawing.Bitmap[], System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), true },
63
{ TypeName.
Parse
($"System.Drawing.Bitmap[], System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), TypeName.
Parse
($"System.Drawing.Bitmap[], System.Drawing, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), false },
64
{ TypeName.
Parse
($"System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), TypeName.
Parse
($"System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), true },
65
{ TypeName.
Parse
($"System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), TypeName.
Parse
($"System.Drawing.Bitmap, System.Drawing, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), false },
System\Windows\Forms\TypeNameComparerTests.cs (34)
16
{ TypeName.
Parse
(typeof(int).AssemblyQualifiedName), typeof(int) },
17
{ TypeName.
Parse
($"{typeof(int).FullName}, {typeof(int).Assembly.FullName}"), typeof(int) },
18
{ TypeName.
Parse
(typeof(int[]).AssemblyQualifiedName), typeof(int[]) },
19
{ TypeName.
Parse
($"{typeof(int[]).FullName}, {typeof(int[]).Assembly.FullName}"), typeof(int[]) },
20
{ TypeName.
Parse
(typeof(List<int>).AssemblyQualifiedName), typeof(List<int>) },
21
{ TypeName.
Parse
($"{typeof(List<int>).FullName}, {typeof(List<int>).Assembly.FullName}"), typeof(List<int>) },
22
{ TypeName.
Parse
(typeof(TestType).AssemblyQualifiedName), typeof(TestType) },
23
{ TypeName.
Parse
($"{typeof(TestType).FullName}, {typeof(TestType).Assembly.FullName}"), typeof(TestType) },
32
{ TypeName.
Parse
(typeof(int).AssemblyQualifiedName), typeof(int) },
33
{ TypeName.
Parse
(typeof(int[]).AssemblyQualifiedName), typeof(int[]) },
34
{ TypeName.
Parse
(typeof(List<int>).AssemblyQualifiedName), typeof(List<int>) },
35
{ TypeName.
Parse
(typeof(TestType).AssemblyQualifiedName), typeof(TestType) },
44
TypeName.
Parse
("System.Int32[], System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"),
45
TypeName.
Parse
("System.Int32, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"),
46
TypeName.
Parse
("System.Int32, System.Private.CoreLib, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"),
47
TypeName.
Parse
($"System.Collections.Generic.List`1[[System.Int32, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], {typeof(List<int>).Assembly.FullName}"),
48
TypeName.
Parse
($"{typeof(TestType).FullName}, {typeof(int).Assembly.FullName}")
57
{ TypeName.
Parse
(typeof(int).AssemblyQualifiedName), typeof(int) },
58
{ TypeName.
Parse
(typeof(int[]).AssemblyQualifiedName), typeof(int[]) },
59
{ TypeName.
Parse
(typeof(List<int>).AssemblyQualifiedName), typeof(List<int>) },
60
{ TypeName.
Parse
(typeof(TestType).AssemblyQualifiedName), typeof(TestType) },
71
{ TypeName.
Parse
(typeof(int).AssemblyQualifiedName), typeof(int) },
72
{ TypeName.
Parse
(typeof(int[]).AssemblyQualifiedName), typeof(int[]) },
73
{ TypeName.
Parse
(typeof(List<int>).AssemblyQualifiedName), typeof(List<int>) },
74
{ TypeName.
Parse
(typeof(TestType).AssemblyQualifiedName), typeof(TestType) },
77
TypeName name = TypeName.
Parse
(typeof(int).AssemblyQualifiedName);
80
name = TypeName.
Parse
(testName);
90
comparer.Equals(null, TypeName.
Parse
(typeof(int).AssemblyQualifiedName)).Should().BeFalse();
91
comparer.Equals(TypeName.
Parse
(typeof(int).AssemblyQualifiedName), null).Should().BeFalse();
93
TypeName.
Parse
(typeof(int).AssemblyQualifiedName),
94
TypeName.
Parse
($"{typeof(int).FullName}, {typeof(int).Assembly.FullName}")).Should().BeTrue();
102
int hash = comparer.GetHashCode(TypeName.
Parse
(typeof(int).AssemblyQualifiedName));
103
comparer.GetHashCode(TypeName.
Parse
(typeof(int).AssemblyQualifiedName)).Should().Be(hash);
104
comparer.GetHashCode(TypeName.
Parse
($"{typeof(int).FullName}, {typeof(int).Assembly.FullName}")).Should().Be(hash);