TryGetValue method
bool
TryGetValue(
- PropertyDefinitionBase propertyDefinition,
- OutParam<
SortDirection> sortDirectionOutParam
Implementation
bool TryGetValue(
PropertyDefinitionBase propertyDefinition,
OutParam<SortDirection> sortDirectionOutParam,
) {
for (MapEntry<PropertyDefinitionBase, SortDirection> pair
in _propDefSortOrderPairList) {
if (pair.key == propertyDefinition) {
sortDirectionOutParam.param = pair.value;
return true;
}
}
sortDirectionOutParam.param =
SortDirection.Ascending; // out parameter has to be set to some value.
return false;
}