public static void OvertakeAllProperties( this IPropertiesContainer targetContainer, IPropertiesContainer sourceContainer) { foreach (var actKey in sourceContainer.Properties.Keys) { targetContainer.SetProperty(actKey, sourceContainer.GetProperty(actKey)); } }
public static void SetProperty(this IPropertiesContainer propContainer, string key, uint value) { propContainer.SetProperty(key, value != 0 ? value.ToString() : PropertyValue.Empty); }
public static void SetProperty(this IPropertiesContainer propContainer, string key, bool value) { propContainer.SetProperty(key, value ? PropertyValue.PROPERTY_VALUE_TRUE : PropertyValue.Empty); }