Beispiel #1
0
            public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destType)
            {
                if (destType == typeof(string) && value is SymbolHelper)
                {
                    // Cast the value to an Employee type
                    SymbolHelper pp = (SymbolHelper)value;

                    return(pp.Varname + ", " + pp.Start_address + ", " + pp.Length);
                }
                return(base.ConvertTo(context, culture, value, destType));
            }
Beispiel #2
0
 public bool Contains(SymbolHelper value)
 {
     // If value is not of type Int16, this will return false.
     return(List.Contains(value));
 }
Beispiel #3
0
 public void Remove(SymbolHelper value)
 {
     List.Remove(value);
 }
Beispiel #4
0
 public void Insert(int index, SymbolHelper value)
 {
     List.Insert(index, value);
 }
Beispiel #5
0
 public int IndexOf(SymbolHelper value)
 {
     return(List.IndexOf(value));
 }
Beispiel #6
0
 public int Add(SymbolHelper value)
 {
     return(List.Add(value));
 }