Exemple #1
0
        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");
            }
        }
Exemple #2
0
 public ChainAttribute(string name)
 {
     Type = ChainContribution.StripContributionType(ref name);
     Name = name;
 }