LanguagePrimitives
Class
Definition
Defines language support methods
public static class LanguagePrimitives
- Inheritance
-
LanguagePrimitives
Methods
| Compare(Object, Object) |
Compare first and second, converting second to the type of the first, if necessary. |
| Compare(Object, Object, Boolean) |
Compare first and second, converting second to the type of the first, if necessary. |
| Compare(Object, Object, Boolean, IFormatProvider) |
Compare first and second, converting second to the type of the first, if necessary. |
| ConvertPSObjectToType(PSObject, Type, Boolean, IFormatProvider, Boolean) | |
| ConvertTo(Object, Type) |
Converts valueToConvert to resultType |
| ConvertTo(Object, Type, IFormatProvider) |
Converts valueToConvert to resultType possibly considering formatProvider |
| ConvertTo<T>(Object) |
Generic convertto that simplifies workfing with workflow. |
| ConvertTypeNameToPSTypeName(String) | |
| Equals(Object, Object, Boolean, IFormatProvider) |
Used to compare two objects for equality converting the second to the type of the first, if required. |
| Equals(Object, Object, Boolean) |
Used to compare two objects for equality converting the second to the type of the first, if required. |
| Equals(Object, Object) |
Used to compare two objects for equality converting the second to the type of the first, if required. |
| GetEnumerable(Object) |
Retrieves the IEnumerable of obj or null if the language does not consider obj to be IEnumerable |
| GetEnumerator(Object) |
Retrieves the IEnumerator of obj or null if the language does not consider obj as capable of returning an IEnumerator |
| GetPSDataCollection(Object) |
This method takes a an arbitrary object and wraps it in a PSDataCollection of PSObject. This simplifies interacting with the PowerShell workflow activities. |
| IsTrue(Object) |
Returns true if the language considers obj to be true |
| TryConvertTo(Object, Type, Object) |
Sets result to valueToConvert converted to resultType. |
| TryConvertTo(Object, Type, IFormatProvider, Object) |
Sets result to valueToConvert converted to resultType considering formatProvider for custom conversions, calling the Parse method and calling Convert.ChangeType. |
| TryConvertTo<T>(Object, T) |
Sets result to valueToConvert converted to resultType. |
| TryConvertTo<T>(Object, IFormatProvider, T) |
Sets result to valueToConvert converted to resultType considering formatProvider for custom conversions, calling the Parse method and calling Convert.ChangeType. |