CSharpHelper CSharpHelper Class

Definition

public class CSharpHelper
Public Class CSharpHelper
Inheritance
System.ObjectSystem.Object
CSharpHelperCSharpHelper

Methods

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

GetHashCode() GetHashCode()

Inherited from System.Object

GetType() GetType()

Inherited from System.Object

Identifier(String, ICollection) Identifier(String, ICollection(Of String))

public virtual string Identifier(string name, ICollection<string> scope = null)
Public Overridable Function Identifier(name As String, scope As ICollection(Of String) = Nothing) As String
Parameters
name
System.String System.String
scope
System.Collections.Generic.ICollection<System.String> System.Collections.Generic.ICollection(Of System.String)
Returns
System.String System.String

Lambda(IReadOnlyList) Lambda(IReadOnlyList(Of String))

public virtual string Lambda(IReadOnlyList<string> properties)
Public Overridable Function Lambda(properties As IReadOnlyList(Of String)) As String
Parameters
properties
System.Collections.Generic.IReadOnlyList<System.String> System.Collections.Generic.IReadOnlyList(Of System.String)
Returns
System.String System.String

Lambda(String, String) Lambda(String, String)

public virtual string Lambda(string property, string variable)
Public Overridable Function Lambda(property As String, variable As String) As String
Parameters
property
System.String System.String
variable
System.String System.String
Returns
System.String System.String

Literal(Boolean) Literal(Boolean)

public virtual string Literal(bool value)
Public Overridable Function Literal(value As Boolean) As String
Parameters
value
System.Boolean System.Boolean
Returns
System.String System.String

Literal(Byte) Literal(Byte)

public virtual string Literal(byte value)
Public Overridable Function Literal(value As Byte) As String
Parameters
value
System.Byte System.Byte
Returns
System.String System.String

Literal(Byte[]) Literal(Byte())

public virtual string Literal(byte[] values)
Public Overridable Function Literal(values As Byte()) As String
Parameters
values
System.Byte[] System.Byte()
Returns
System.String System.String

Literal(Char) Literal(Char)

public virtual string Literal(char value)
Public Overridable Function Literal(value As Char) As String
Parameters
value
System.Char System.Char
Returns
System.String System.String

Literal(DateTime) Literal(DateTime)

public virtual string Literal(DateTime value)
Public Overridable Function Literal(value As Date) As String
Parameters
value
System.DateTime System.DateTime
Returns
System.String System.String

Literal(DateTimeOffset) Literal(DateTimeOffset)

public virtual string Literal(DateTimeOffset value)
Public Overridable Function Literal(value As DateTimeOffset) As String
Parameters
value
System.DateTimeOffset System.DateTimeOffset
Returns
System.String System.String

Literal(Decimal) Literal(Decimal)

public virtual string Literal(decimal value)
Public Overridable Function Literal(value As Decimal) As String
Parameters
value
System.Decimal System.Decimal
Returns
System.String System.String

Literal(Double) Literal(Double)

public virtual string Literal(double value)
Public Overridable Function Literal(value As Double) As String
Parameters
value
System.Double System.Double
Returns
System.String System.String

Literal(Enum) Literal(Enum)

public virtual string Literal(Enum value)
Public Overridable Function Literal(value As  Enum) As String
Parameters
value
System.Enum System.Enum
Returns
System.String System.String

Literal(Guid) Literal(Guid)

public virtual string Literal(Guid value)
Public Overridable Function Literal(value As Guid) As String
Parameters
value
System.Guid System.Guid
Returns
System.String System.String

Literal(IReadOnlyList) Literal(IReadOnlyList(Of String))

public virtual string Literal(IReadOnlyList<string> values)
Public Overridable Function Literal(values As IReadOnlyList(Of String)) As String
Parameters
values
System.Collections.Generic.IReadOnlyList<System.String> System.Collections.Generic.IReadOnlyList(Of System.String)
Returns
System.String System.String

Literal(Int16) Literal(Int16)

public virtual string Literal(short value)
Public Overridable Function Literal(value As Short) As String
Parameters
value
System.Int16 System.Int16
Returns
System.String System.String

Literal(Int32) Literal(Int32)

public virtual string Literal(int value)
Public Overridable Function Literal(value As Integer) As String
Parameters
value
System.Int32 System.Int32
Returns
System.String System.String

Literal(Int64) Literal(Int64)

public virtual string Literal(long value)
Public Overridable Function Literal(value As Long) As String
Parameters
value
System.Int64 System.Int64
Returns
System.String System.String

Literal(SByte) Literal(SByte)

public virtual string Literal(sbyte value)
Public Overridable Function Literal(value As SByte) As String
Parameters
value
System.SByte System.SByte
Returns
System.String System.String

Literal(Single) Literal(Single)

public virtual string Literal(float value)
Public Overridable Function Literal(value As Single) As String
Parameters
value
System.Single System.Single
Returns
System.String System.String

Literal(String) Literal(String)

public virtual string Literal(string value)
Public Overridable Function Literal(value As String) As String
Parameters
value
System.String System.String
Returns
System.String System.String

Literal(TimeSpan) Literal(TimeSpan)

public virtual string Literal(TimeSpan value)
Public Overridable Function Literal(value As TimeSpan) As String
Parameters
value
System.TimeSpan System.TimeSpan
Returns
System.String System.String

Literal(UInt16) Literal(UInt16)

public virtual string Literal(ushort value)
Public Overridable Function Literal(value As UShort) As String
Parameters
value
System.UInt16 System.UInt16
Returns
System.String System.String

Literal(UInt32) Literal(UInt32)

public virtual string Literal(uint value)
Public Overridable Function Literal(value As UInteger) As String
Parameters
value
System.UInt32 System.UInt32
Returns
System.String System.String

Literal(UInt64) Literal(UInt64)

public virtual string Literal(ulong value)
Public Overridable Function Literal(value As ULong) As String
Parameters
value
System.UInt64 System.UInt64
Returns
System.String System.String

Literal(Nullable) Literal(Of T)(Nullable(Of T))

public virtual string Literal<T>(T? value)where T : struct
Public Overridable Function Literal(Of T As Structure)(value As T?) As String
Type Parameters
T
Parameters
value
System.Nullable<T> System.Nullable(Of T)
Returns
System.String System.String

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

Namespace(String[]) Namespace(String())

public virtual string Namespace(params string[] name)
Public Overridable Function Namespace(ParamArray name As String()) As String
Parameters
name
System.String[] System.String()
Returns
System.String System.String

Reference(Type) Reference(Type)

public virtual string Reference(Type type)
Public Overridable Function Reference(type As Type) As String
Parameters
type
System.Type System.Type
Returns
System.String System.String

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

ToString() ToString()

Inherited from System.Object

UnknownLiteral(Object) UnknownLiteral(Object)

public virtual string UnknownLiteral(object value)
Public Overridable Function UnknownLiteral(value As Object) As String
Parameters
value
System.Object System.Object
Returns
System.String System.String