| IValueEditorContextTryGetValueT Method |
Tries to take the value, cast it to the specified type and return it. If value isn't of expected type, false is returned.
Namespace: Slash.Unity.Common.GUI.ValueEditorsAssembly: Slash.Unity.Common (in Slash.Unity.Common.dll) Version: 1.0.6018.40182
Syntax bool TryGetValue<T>(
out T value
)
Function TryGetValue(Of T) (
<OutAttribute> ByRef value As T
) As Boolean
generic<typename T>
bool TryGetValue(
[OutAttribute] T% value
)
abstract TryGetValue :
value : 'T byref -> bool
Parameters
- value
- Type: T
Contains the value if it was casted successful; otherwise the default value of the specified type.
Type Parameters
- T
- Expected type of value.
Return Value
Type:
Boolean True if the value could be successful casted; otherwise, false.
See Also