public void SetProperty( string name, object value )
{
KeyList<PropertyBag> key = new KeyList<PropertyBag>( "propName", name );
PropertyBag myBag = new PropertyBag( );
if ( PropertyBagData.Contains( key ) )
{
myBag = ( PropertyBag ) PropertyBagData[ key ];
myBag.value = value;
PropertyBagData[ key ] = myBag;
}
else
{
myBag.propName = name;
myBag.value = value;
PropertyBagData.Add( myBag );
}
}