I have a custom dictionary and i would like to bind it to a control.
Since Dictionary doesn't implement IList i would have to write it. Is
the only way to do this to keep another collection that matches the key
in the dictionary to an index in the collection?
dan
Here is the code i want to add IList to.
public interface ISystemMessageD ata
{
String MessageID { get; set;}
String WhseID { get; set;}
String Flag { get; set;}
String MessageDate { get; set;}
String UserID { get; set;}
String Message { get; set;}
String PersonID { get; set;}
String MachineName { get; set;}
String DeviceID { get; set;}
String Subject { get; set;}
String ToEmail { get; set;}
String EmailFlag { get; set;}
String FromEmail { get; set;}
}
[Serializable]
public class RemoteDataColle ction<TKey, TValue> :
System.Collecti ons.Generic.Dic tionary<TKey, TValue>
{
public RemoteDataColle ction() { }
protected
RemoteDataColle ction(System.Ru ntime.Serializa tion.Serializat ionInfo
info, System.Runtime. Serialization.S treamingContext context) :
base(info, context) { }
}
[Serializable]
public class SystemMessageDa taCollection :
RemoteDataColle ction<String, ISystemMessageD ata>
{
public SystemMessageDa taCollection() { }
protected
SystemMessageDa taCollection(Sy stem.Runtime.Se rialization.Ser ializationInfo
info, System.Runtime. Serialization.S treamingContext context):base(i nfo,
context){}
}