GetDefaultValueForInitialization(T) Method

ClientBase<TChannel>.GetDefaultValueForInitialization<T> Method

Replicates the behavior of the default keyword in C#.

Namespace:  System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

protected T GetDefaultValueForInitialization<T>()

Type Parameters

T

A C# type.

Return Value

Type: T
Returns null if T is a reference type and zero if T is a numeric value type.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2016 Microsoft