Game Development Reference
In-Depth Information
private string name;
public string Name
{
get { return name; }
}
public SortablePair(string name, int order)
{
this.order = order;
this.name = name;
}
public int CompareTo(SortablePair pair)
{
int result;
if (pair.order == order)
{
result = string.Compare(name, pair.name);
}
else if (pair.order > order)
{
result = -1;
}
else
{
result = 1;
}
return result;
}
}
public override bool GetPropertiesSupported(ITypeDescriptorContext context)
{
return true;
}
public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext cx,
object component,
Attribute[] attrib)
Search Nedrilad ::




Custom Search