Skip to content

Commit c1ad1fc

Browse files
committed
add MyType.ReplaceNumExtension
1 parent 33139c8 commit c1ad1fc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Src/MyHelper/MyType.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ public static class MyType
7777
internal static HashSet<Type> UnsignedSet = new HashSet<Type> { Bool, Char, Byte, UShort, UInt, ULong };
7878
internal static HashSet<Type> IEEESet = new HashSet<Type> { Float, Double, Real };
7979

80+
public static void ReplaceNumExtension(Type numType, Type extension)
81+
{
82+
ExtensionSet[numType] = extension;
83+
}
84+
8085
public static void RegisterNumExtension(Type numType, string shortName, bool hasOne = false, bool unSinged = false, bool isIEEE = false, Type extension = null)
8186
{
8287
WholeNumSet.Add(numType);

0 commit comments

Comments
 (0)