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