protected T Get<T>(
Func<T> createInitialValue,
string propertyName = null
)
Protected Function Get(Of T) (
createInitialValue As Func(Of T),
Optional propertyName As String = Nothing
) As T
protected:
generic<typename T>
T Get(
Func<T>^ createInitialValue,
String^ propertyName = nullptr
)
member Get :
createInitialValue : Func<'T> *
?propertyName : string
(* Defaults:
let _propertyName = defaultArg propertyName null
*)
-> 'T
ArgumentNullException | propertyName is . |
InvalidOperationException | propertyName cannot be retrieved.
-or- The stored value of the property is not compatible with T. -or- propertyName value does not exist and createInitialValue is . -or- The created default value of the property cannot be set. -or- CanGetProperty is not overridden and propertyName is not an actual instance property in this instance. |
ObjectDisposedException | IsDisposed returns whereas AllowReadingDisposedObject returns . |