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