Skip to content

Commit 1382ae6

Browse files
committed
chore
1 parent 3b38e25 commit 1382ae6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Runtime/USGFullNameOf.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ public static string usg<T>(params string[] memberNames)
2323
}
2424

2525
///<summary>Get type definition literal of supplied object.</summary>
26-
///<remarks>Throw when object is null.</remarks>
26+
///<param name="valueOrType">Throw when valueOrType is null.</param>
2727
///<returns>Ex: Dictionary&lt;int, List&lt;Dictionary&lt;string, float[][]&gt;[]&gt;&gt;[]</returns>
28-
public static string usg(object obj, bool isFullName = true)
28+
public static string usg(object valueOrType, bool isFullName = true)
2929
{
30-
if (obj == null)
30+
if (valueOrType == null)
3131
throw new ArgumentNullException();
3232

33-
if (obj is Type t)
33+
if (valueOrType is Type t)
3434
return GetTypeDef(t, isFullName);
3535

36-
return GetTypeDef(obj.GetType(), isFullName);
36+
return GetTypeDef(valueOrType.GetType(), isFullName);
3737
}
3838

3939

0 commit comments

Comments
 (0)