Table of Contents

Method ChangeType

Namespace
Skyline.DataMiner.Core.DataMinerSystem.Common
Assembly
Skyline.DataMiner.Core.DataMinerSystem.Common.dll

ChangeType<T>(object)

Converts an object to the desired type.

public static T ChangeType<T>(this object obj) where T : IConvertible

Parameters

obj object

Object to convert.

Returns

T

The converted object.

Type Parameters

T

Type of the result.

Exceptions

InvalidCastException

This conversion is not supported. Or obj does not implement the IConvertible interface.

FormatException

obj is not in a format unrecognized by conversionType.

OverflowException

obj represents a number that is out of the range of conversionType.