本文整理汇总了C#中IParameters.ToEnumerable方法的典型用法代码示例。如果您正苦于以下问题:C# IParameters.ToEnumerable方法的具体用法?C# IParameters.ToEnumerable怎么用?C# IParameters.ToEnumerable使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IParameters
的用法示例。
在下文中一共展示了IParameters.ToEnumerable方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AverageOperation
public AverageOperation(string outKey, string outType, IParameters parameters)
: base(string.Empty, outKey) {
_outType = outType;
_parameters = parameters;
_typeSafe = parameters.ToEnumerable().All(kv => kv.Value.SimpleType.Equals(outType));
Name = string.Format("Average ({0})", outKey);
}
示例2: GeoCodeOperation
public GeoCodeOperation(string inKey, string outKey, int sleep, bool useHttps, IParameters parameters)
: base(inKey, outKey) {
_sleep = sleep;
_parameters = parameters.ToEnumerable().Select(kv => kv.Value).ToArray();
_service = new GoogleLocationService(useHttps);
_useParameters = parameters.Count > 1;
Name = string.Format("GeoCode ({0})", outKey);
}
示例3: EqualsOperation
public EqualsOperation(string key, IParameters parameters)
: base(parameters.Count == 1 ? parameters[0].Name : "*", key) {
_parameters = parameters.ToEnumerable().ToList();
Name = "Equals(" + InKey + "=>" + OutKey + ")";
if (InKey == "*") {
_operation = CompareMultiple;
} else {
_operation = CompareSingle;
}
}
示例4: ConcatOperation
public ConcatOperation(string outKey, IParameters parameters)
: base(string.Empty, outKey) {
_parameters = parameters.ToEnumerable().ToArray();
Name = string.Format("ConcatOperation ({0})", outKey);
}
示例5: JoinTransformOperation
public JoinTransformOperation(string outKey, string separator, IParameters parameters)
: base(string.Empty, outKey) {
_separator = separator;
_parameters = parameters.ToEnumerable();
Name = string.Format("JoinOperation ({0})", outKey);
}
示例6: FormatOperation
public FormatOperation(string outKey, string format, IParameters parameters)
: base(string.Empty, outKey) {
_format = format;
_parameters = parameters.ToEnumerable();
Name = string.Format("FormatOperation ({0})", outKey);
}
示例7: FromJsonOperation
public FromJsonOperation(string inKey, IParameters parameters)
: base(inKey, string.Empty) {
_parameters = parameters.ToEnumerable().ToArray();
Name = string.Format("FromJsonOperation (in:{0})", inKey);
}
示例8: CopyMultipleOperation
public CopyMultipleOperation(string outKey, IParameters parameters)
: base(string.Empty, outKey) {
_parameters = parameters.ToEnumerable();
Name = string.Format("CopyMultipleOperation ({0})", outKey);
}
示例9: FromSplitOperation
public FromSplitOperation(string inKey, string separator, IParameters parameters)
: base(inKey, string.Empty) {
_separator = separator.ToCharArray();
_parameters = parameters.ToEnumerable().ToArray();
Name = string.Format("FromSplitOperation (in:{0})", inKey);
}
示例10: FromJsonOperation
public FromJsonOperation(string inKey, IParameters parameters)
: base(inKey, string.Empty) {
_parameters = parameters.ToEnumerable().ToArray();
Name = $"FromJsonOperation (in:{inKey})";
}