Class ReflectionStringExtensions
String extensions for reflection purposes.
Inheritance
System.Object
ReflectionStringExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Reflection
Assembly: Kephas.Core.dll
Syntax
public static class ReflectionStringExtensions
Methods
| Improve this Doc View SourceSafeSubstring(String, Int32)
A string extension method that creates a safe substring from the given index.
Declaration
public static string SafeSubstring(this string value, int startIndex)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The value to act on. |
System.Int32 | startIndex | The start index. |
Returns
Type | Description |
---|---|
System.String | A string. |
SafeSubstring(String, Int32, Int32)
A string extension method that safe substring from the given index with the given length.
Declaration
public static string SafeSubstring(this string value, int startIndex, int length)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The value to act on. |
System.Int32 | startIndex | The start index. |
System.Int32 | length | The length. |
Returns
Type | Description |
---|---|
System.String | A string. |
ToCamelCase(String)
Converts the provided string value to camel case.
Declaration
public static string ToCamelCase(this string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The value to act on. |
Returns
Type | Description |
---|---|
System.String | The camel case representation of the provided value. |
ToPascalCase(String)
Converts the provided string value to Pascal case.
Declaration
public static string ToPascalCase(this string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The value to act on. |
Returns
Type | Description |
---|---|
System.String | The Pascal case representation of the provided value. |