public static string GetPrefix(this ChainContributionType type) { switch (type) { case ChainContributionType.More: return("+"); case ChainContributionType.Global: return("g"); case ChainContributionType.Instance: return(""); default: throw new System.Exception("Never gets to here"); } }
public ChainAttribute(string name) { Type = ChainContribution.StripContributionType(ref name); Name = name; }