File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public static Guid GetGUID(Type type)
22
22
return type . GetGuidType ( ) . GUID ;
23
23
}
24
24
25
- public static Guid GetIID (
25
+ public static Guid GetIID (
26
26
#if NET
27
27
[ DynamicallyAccessedMembers ( DynamicallyAccessedMemberTypes . PublicFields ) ]
28
28
#endif
@@ -36,21 +36,21 @@ public static Guid GetIID(
36
36
return ( Guid ) type . GetField ( "PIID" ) . GetValue ( null ) ;
37
37
}
38
38
39
- public static string GetSignature (
39
+ public static string GetSignature (
40
40
#if NET
41
41
[ DynamicallyAccessedMembers ( DynamicallyAccessedMemberTypes . PublicFields ) ]
42
42
#endif
43
43
Type type )
44
- {
44
+ {
45
45
if ( type == typeof ( object ) )
46
46
{
47
47
return "cinterface(IInspectable)" ;
48
- }
49
-
48
+ }
49
+
50
50
if ( type == typeof ( string ) )
51
51
{
52
52
return "string" ;
53
- }
53
+ }
54
54
55
55
var helperType = type . FindHelperType ( ) ;
56
56
if ( helperType != null )
@@ -95,15 +95,15 @@ public static string GetSignature(
95
95
}
96
96
}
97
97
}
98
-
98
+
99
99
type = type . IsInterface ? ( type . GetAuthoringMetadataType ( ) ?? type ) : type ;
100
100
101
101
if ( type . IsGenericType )
102
102
{
103
103
var args = type . GetGenericArguments ( ) . Select ( t => GetSignature ( t ) ) ;
104
104
return "pinterface({" + GetGUID ( type ) + "};" + String . Join ( ";" , args ) + ")" ;
105
- }
106
-
105
+ }
106
+
107
107
if ( type . IsDelegate ( ) )
108
108
{
109
109
return "delegate({" + GetGUID ( type ) + "})" ;
You can’t perform that action at this time.
0 commit comments