Example #1
0
        public static String Write(SourceCodeLanguage language, ClassModifier modifier)
        {
            var sc = Create(language);

            sc.Write(modifier);
            return(sc.TextWriter.ToString());
        }
        public override void Write(ClassModifier modifier)
        {
            var writer = this.TextWriter;

            this.Write(modifier.AccessModifier);
            writer.Write(" ");
            if (modifier.Partial == true)
            {
                writer.Write("partial ");
            }

            if (modifier.Static == true)
            {
                writer.Write("static ");
            }
            else if (modifier.Abstract == true)
            {
                writer.Write("abstract ");
            }
        }
 public override void Write(ClassModifier modifier)
 {
     throw new NotImplementedException();
 }
Example #4
0
 public abstract void Write(ClassModifier modifier);
 public override void Write(ClassModifier modifier)
 {
     throw new NotImplementedException();
 }
Example #6
0
 public abstract void Write(ClassModifier modifier);
Example #7
0
 public static String Write(SourceCodeLanguage language, ClassModifier modifier)
 {
     var sc = Create(language);
     sc.Write(modifier);
     return sc.TextWriter.ToString();
 }