UnpackHelpersConvertWithEnsuringNotNullT Method |
Note: This API is now obsolete.
Ensures the boxed type is not null thus it cannot be unboxing.
Namespace: MsgPack.SerializationAssembly: MsgPack (in MsgPack.dll) Version: 0.6.0
Syntax [EditorBrowsableAttribute(EditorBrowsableState.Never)]
[ObsoleteAttribute("This API is not used at generated serializers in current release, so this API will be removed future.")]
public static T ConvertWithEnsuringNotNull<T>(
Object boxed,
string name,
Type targetType
)
<EditorBrowsableAttribute(EditorBrowsableState.Never)>
<ObsoleteAttribute("This API is not used at generated serializers in current release, so this API will be removed future.")>
Public Shared Function ConvertWithEnsuringNotNull(Of T) (
boxed As Object,
name As String,
targetType As Type
) As T
public:
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
[ObsoleteAttribute(L"This API is not used at generated serializers in current release, so this API will be removed future.")]
generic<typename T>
static T ConvertWithEnsuringNotNull(
Object^ boxed,
String^ name,
Type^ targetType
)
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
[<ObsoleteAttribute("This API is not used at generated serializers in current release, so this API will be removed future.")>]
static member ConvertWithEnsuringNotNull :
boxed : Object *
name : string *
targetType : Type -> 'T
Parameters
- boxed
- Type: SystemObject
The boxed deserializing value. - name
- Type: SystemString
The name of the member. - targetType
- Type: SystemType
The type of the target.
Type Parameters
- T
- The type of the member.
Return Value
Type:
TThe unboxed value.
See Also