Skip to content

Commit 41128ee

Browse files
committed
Correct Guid Generator
Undo any accidental changes
1 parent de58f4c commit 41128ee

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/WinRT.Runtime/GuidGenerator.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static Guid GetGUID(Type type)
2222
return type.GetGuidType().GUID;
2323
}
2424

25-
public static Guid GetIID(
25+
public static Guid GetIID(
2626
#if NET
2727
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields)]
2828
#endif
@@ -36,21 +36,21 @@ public static Guid GetIID(
3636
return (Guid)type.GetField("PIID").GetValue(null);
3737
}
3838

39-
public static string GetSignature(
39+
public static string GetSignature(
4040
#if NET
4141
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields)]
4242
#endif
4343
Type type)
44-
{
44+
{
4545
if (type == typeof(object))
4646
{
4747
return "cinterface(IInspectable)";
48-
}
49-
48+
}
49+
5050
if (type == typeof(string))
5151
{
5252
return "string";
53-
}
53+
}
5454

5555
var helperType = type.FindHelperType();
5656
if (helperType != null)
@@ -95,15 +95,15 @@ public static string GetSignature(
9595
}
9696
}
9797
}
98-
98+
9999
type = type.IsInterface ? (type.GetAuthoringMetadataType() ?? type) : type;
100100

101101
if (type.IsGenericType)
102102
{
103103
var args = type.GetGenericArguments().Select(t => GetSignature(t));
104104
return "pinterface({" + GetGUID(type) + "};" + String.Join(";", args) + ")";
105-
}
106-
105+
}
106+
107107
if (type.IsDelegate())
108108
{
109109
return "delegate({" + GetGUID(type) + "})";

0 commit comments

Comments
 (0)