private static IEnumerable <INamedParameter> ToNamedParameters(IParameterizedCoordinateOperationInfo operationInfo) { Contract.Ensures(Contract.Result <IEnumerable <INamedParameter> >() != null); return(operationInfo != null && operationInfo.Parameters != null ? operationInfo.Parameters : Enumerable.Empty <INamedParameter>()); }
public NamedParameterLookup(IParameterizedCoordinateOperationInfo operationInfo) : this(ToNamedParameters(operationInfo)) { }
private static IEnumerable<INamedParameter> ToNamedParameters( IParameterizedCoordinateOperationInfo operationInfo) { Contract.Ensures(Contract.Result<IEnumerable<INamedParameter>>() != null); return operationInfo != null && operationInfo.Parameters != null ? operationInfo.Parameters : Enumerable.Empty<INamedParameter>(); }