Version

CoreUtilities Class Members

The following tables list the members exposed by CoreUtilities.

Protected Constructors
 NameDescription
Protected ConstructorCoreUtilities ConstructorFor internal use  
Public Methods
 NameDescription
Public Methodstatic (Shared in Visual Basic)BuildEmbeddedResourceUriCreates a Uri for a resource embedded in an assembly  
Public Methodstatic (Shared in Visual Basic)ConvertDataValueConverts 'valueToConvert' to an object of the type 'convertToType'. If it cannot perform the conversion it returns null. It makes use of any formatting information provided passed in.  
Public Methodstatic (Shared in Visual Basic)CreateComparerOverloaded. Creates an IComparer that wraps the specified comparison.  
Public Methodstatic (Shared in Visual Basic)GetUnderlyingTypeTakes a Type and returns the underlying (non-nullable) type, if the Type is nullable. If the specified type is not nullable, then the passed-in type is returned.  
Public Methodstatic (Shared in Visual Basic)GetWeakReferenceTargetSafeWraps the 'get' of the Target property in a try/catch to prevent unhandled exceptions  
Public Methodstatic (Shared in Visual Basic)RemoveAllOverloaded. Removes all occurrences of itemToRemove from list.  
Public Methodstatic (Shared in Visual Basic)SortMergeOverloaded. Sorts the passed in array based on the passed in comparer using a modified merge-sort algorithm. It requires allocation of an array equal in size to the array to be sorted. Merge sort should be used if the operation of comparing items is expensive.  
Public Methodstatic (Shared in Visual Basic)SortMergeGenericOverloaded. Sorts the passed in list based on the passed in comparer using a modified merge-sort algorithm.  
Public Methodstatic (Shared in Visual Basic)Swap<T>Swaps values in a list at specified indexes.  
See Also