Class Tool
Inheritance
System.Object
Tool
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: OpenSilver.Compiler.TypeScriptDefToCSharp.dll
Methods
|
Improve this Doc
View Source
Declaration
public static string ClearKeyWord(string Name)
Parameters
Type |
Name |
Description |
System.String |
Name |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public static T Deserialize<T>(string toDeserialize)
Parameters
Type |
Name |
Description |
System.String |
toDeserialize |
|
Returns
Type Parameters
|
Improve this Doc
View Source
Declaration
public static int FirstMismatchIndex<T>(this IReadOnlyList<T> l1, IReadOnlyList<T> l2)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IReadOnlyList<T> |
l1 |
|
System.Collections.Generic.IReadOnlyList<T> |
l2 |
|
Returns
Type |
Description |
System.Int32 |
|
Type Parameters
|
Improve this Doc
View Source
Declaration
public static string GenerateUnionType(int n)
Parameters
Type |
Name |
Description |
System.Int32 |
n |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public static byte[] GetHash(string inputString)
Parameters
Type |
Name |
Description |
System.String |
inputString |
|
Returns
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
Declaration
public static string GetHashString(string inputString)
Parameters
Type |
Name |
Description |
System.String |
inputString |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public static string GetIdent(XElement elem)
Parameters
Type |
Name |
Description |
System.Xml.Linq.XElement |
elem |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public static bool IsBasicType(TSType type)
Parameters
Type |
Name |
Description |
TSType |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public static bool IsDomType(BasicType type)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public static bool IsKeyWord(string Word)
Parameters
Type |
Name |
Description |
System.String |
Word |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public static bool IsPrimitiveType(BasicType type)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public static string JSArrayDimensionName(string name, int arrayLevel)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Int32 |
arrayLevel |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
NewType(XElement, TypeScriptDefContext)
Declaration
public static TSType NewType(XElement elem, TypeScriptDefContext context)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static string ReIndent(string Text)
Parameters
Type |
Name |
Description |
System.String |
Text |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public static string RemoveDotIdentAdditionalChars(string nameThatCanContainAdditionalChars)
Parameters
Type |
Name |
Description |
System.String |
nameThatCanContainAdditionalChars |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public static string Serialize<T>(T toSerialize)
Parameters
Type |
Name |
Description |
T |
toSerialize |
|
Returns
Type |
Description |
System.String |
|
Type Parameters
|
Improve this Doc
View Source
Declaration
public static string Tab(int t)
Parameters
Type |
Name |
Description |
System.Int32 |
t |
|
Returns
Type |
Description |
System.String |
|