Example #1
0
        public static PropertyBlock Create(
            string propertyModifiers,
            string propertyType,
            string propertyName)
        {
            PropertyBlock result = new PropertyBlock();

            if (!string.IsNullOrEmpty(propertyModifiers))
            {
                result.Modifiers.SetMany(propertyModifiers);
            }
            if (!string.IsNullOrEmpty(propertyType))
            {
                result.Modifiers.Set(propertyType);
            }
            if (!string.IsNullOrEmpty(propertyName))
            {
                result.Name = propertyName;
            }
            return(result);
        }
Example #2
0
 public virtual void Visit(PropertyBlock block)
 {
 }
Example #3
0
 public override void Visit(PropertyBlock block)
 {
 }
Example #4
0
        public static PropertyBlock Create(
			string propertyModifiers,
			string propertyType,
			string propertyName)
        {
            PropertyBlock result = new PropertyBlock();
            if (!string.IsNullOrEmpty(propertyModifiers))
            {
                result.Modifiers.SetMany(propertyModifiers);
            }
            if (!string.IsNullOrEmpty(propertyType))
            {
                result.Modifiers.Set(propertyType);
            }
            if (!string.IsNullOrEmpty(propertyName))
            {
                result.Name = propertyName;
            }
            return result;
        }
Example #5
0
 public override void Visit(PropertyBlock block)
 {
 }
Example #6
0
 public override void Visit(PropertyBlock block)
 {
     WriteIndent();
     Write(block.Modifiers);
     Write(block.Name);
     NewLine();
     StartBlock();
     if (block.GetAccessor != null)
     {
         Visit(block.GetAccessor);
     }
     if (block.SetAccessor != null)
     {
         Visit(block.SetAccessor);
     }
     EndBlock();
 }
Example #7
0
		public virtual void Visit(PropertyBlock block)
		{
			
		}