MpfUtilities.ConvertToType<T> Method
Namespace: Microsoft.VisualStudio.Data.Schema.Project.Project.MPF
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Public Shared Function ConvertToType(Of T As {Structure, New}) ( _
value As T, _
typeToConvert As Type, _
culture As CultureInfo _
) As Object
'Usage
Dim value As T
Dim typeToConvert As Type
Dim culture As CultureInfo
Dim returnValue As Object
returnValue = MpfUtilities.ConvertToType(value, _
typeToConvert, culture)
public static Object ConvertToType<T>(
T value,
Type typeToConvert,
CultureInfo culture
)
where T : struct, new()
public:
generic<typename T>
where T : value class, gcnew()
static Object^ ConvertToType(
T value,
Type^ typeToConvert,
CultureInfo^ culture
)
JScript does not support generic types or methods.
static member ConvertToType :
value:'T *
typeToConvert:Type *
culture:CultureInfo -> Object when 'T : struct, new()
Type Parameters
- T
Parameters
- value
Type: T
- typeToConvert
Type: System.Type
- culture
Type: System.Globalization.CultureInfo
Return Value
Type: System.Object
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.Data.Schema.Project.Project.MPF Namespace