using System;
using System.Collections;
using System.Runtime.Serialization;
using DataHolder.Containers;
namespace GEGeneratorWizzard{
#region WizzardFieldAttribute
[Serializable]
public class WizzardFieldAttribute : DataHolder.Containers.GenericData
{
#region Constructors
public WizzardFieldAttribute()
{}
public WizzardFieldAttribute(SerializationInfo info, StreamingContext context):base(info, context)
{}
#endregion
protected override DataHolder.Containers.Property.PropertyCollection NewPropertyCollection
{
get
{
return new DataHolder.Containers.Property.PropertyCollection(
new DataHolder.Containers.Property.GenericDataProperty [] {
new DataHolder.Containers.Property.Property("AttributeGUID", typeof(string) , DBNull.Value, true)
,
new DataHolder.Containers.Property.Property("AttributeConstructorSentence", typeof(string) , DBNull.Value, true)
,
new DataHolder.Containers.Property.Property("AttributeName", typeof(string) , DBNull.Value, true)
,
new DataHolder.Containers.Property.Property("Index", typeof(int) , 0, true)
}
);
}
}
public String AttributeGUID
{
get{return GetValue<string>( 0, string.Empty);}
set{SetValue<string>(0, value, string.Empty);}
}
public String AttributeConstructorSentence
{
get{return GetValue<string>( 1, string.Empty);}
set{SetValue<string>(1, value, string.Empty);}
}
public String AttributeName
{
get{return GetValue<string>( 2, string.Empty);}
set{SetValue<string>(2, value, string.Empty);}
}
public int Index
{
get{return (int)this[3];}
set{this[3] = value;}
}
}
#endregion
}
|