public static GaSymMapUnilinearComposed Create(params IGaSymMapUnilinear[] mappingsList) { var resultMap = new GaSymMapUnilinearComposed(mappingsList[0]); for (var i = 1; i < mappingsList.Length; i++) { resultMap.AddMapping(mappingsList[i]); } return(resultMap); }
public static GaSymMapUnilinearComposed Create(IEnumerable <IGaSymMapUnilinear> mappingsList) { var mappingsArray = mappingsList.ToArray(); var resultMap = new GaSymMapUnilinearComposed(mappingsArray[0]); for (var i = 1; i < mappingsArray.Length; i++) { resultMap.AddMapping(mappingsArray[i]); } return(resultMap); }