Ejemplo n.º 1
0
 protected override void InternalSetValue(PropertyBag.BasicPropertyStore propertyBag, object value)
 {
     string[] array = value as string[];
     if (array != null)
     {
         propertyBag.SetValue(InternalSchema.ReplicaListBinary, ReplicaListProperty.GetBytesFromStringArray(array));
     }
 }
Ejemplo n.º 2
0
 protected override object InternalTryGetValue(PropertyBag.BasicPropertyStore propertyBag)
 {
     byte[] array = propertyBag.GetValue(InternalSchema.ReplicaListBinary) as byte[];
     if (array == null)
     {
         return(new PropertyError(this, PropertyErrorCode.NotFound));
     }
     return(ReplicaListProperty.GetStringArrayFromBytes(array));
 }