public static IEnumerable<ParameterSpliter> Parse(ParameterSpliterStyle style) { if ((style & ParameterSpliterStyle.Spaces) == ParameterSpliterStyle.Spaces) yield return new ParameterSpliter(" "); if ((style & ParameterSpliterStyle.Colon) == ParameterSpliterStyle.Colon) yield return new ParameterSpliter(":"); if ((style & ParameterSpliterStyle.EqualsSign) == ParameterSpliterStyle.EqualsSign) yield return new ParameterSpliter("="); }
private ParameterSpliter(ParameterSpliterStyle style, string spliter) { this.Style = style; this.Spliter = spliter; }