Summary
A variety of methods relating to C# code.
- Assembly
- Weaver
.dll - Namespace
- Weaver
- Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["CSharp"]
class Type type-node
Syntax
public static class CSharp
Methods
| Name | Value | Summary |
|---|---|---|
| Append |
void |
Appends the signature of a method with the specified details as it would appear in C# code.
static
|
| Append |
int |
Appends the name and generic arguments of `type` (after skipping the specified number).
Returns the index of the last argument.
static
|
| Append |
int |
Appends the name and generic arguments of `type` (after skipping the specified number).
Returns the index of the last argument.
static
|
| AppendParameters |
void |
Appends the signature of `method` as it would appear in C# code.
static
|
| AppendSignature |
void |
Appends the signature of `method` as it would appear in C# code.
static
|
| Compare |
int |
Compares the declaring type namespaces, then declaring type names, then member names.
static
|
| GetKeyword |
string |
Returns the C# keyword associated with the specified `type` such as
int, float, string, etc.
Returns null if there is no associated keyword.
static
|
| GetNameCS |
string |
Returns the full name of a `method` as it would appear in C# code. See:
Weaver.CSharp.GetNameCS(System.Reflection.MemberInfo,Weaver.CSharp.NameVerbosity).static
|
| GetNameCS |
string |
Returns the full name of a `method` as it would appear in C# code. See:
Weaver.CSharp.GetNameCS(System.Reflection.MemberInfo,Weaver.CSharp.NameVerbosity).static
|
| GetNameCS |
string |
Returns the full name of a `member` as it would appear in C# code.
For example, passing the
System.Reflection.MethodInfo of this method in as its own parameter would return "Weaver.CSharp.GetNameCS".
Note that when `member` is a System.Type, this method calls Weaver.CSharp.GetNameCS(System.Type,Weaver.CSharp.NameVerbosity) instead.
static
|
| GetNameCS |
string |
Returns the name of a `type` as it would appear in C# code. Results are cached.
static
|
| GetNameCS |
string |
Returns the full name of a `method` as it would appear in C# code. See:
Weaver.CSharp.GetNameCS(System.Reflection.MemberInfo,Weaver.CSharp.NameVerbosity).static
|
| GetNameCS |
string |
Returns the full name of a `method` as it would appear in C# code. See:
Weaver.CSharp.GetNameCS(System.Reflection.MemberInfo,Weaver.CSharp.NameVerbosity).static
|
| GetNameCS |
string |
Returns the full name of a `method` as it would appear in C# code. See:
Weaver.CSharp.GetNameCS(System.Reflection.MemberInfo,Weaver.CSharp.NameVerbosity).static
|
| GetNameCS |
string |
Returns the full name of a `method` as it would appear in C# code. See:
Weaver.CSharp.GetNameCS(System.Reflection.MemberInfo,Weaver.CSharp.NameVerbosity).static
|
| GetSignature |
string |
Returns the signature of `method` as it would appear in C# code.
static
|
| HasKeyword |
bool |
Returns true if the specified `type` is associated with a C# keyword such as
int, float, string, etc.static
|
| IsReservedKeyword |
bool |
Returns true if the `word` is reserved by the C# language.
static
|