protected override void InternalSetValue(PropertyBag.BasicPropertyStore propertyBag, object value) { string[] array = value as string[]; if (array != null) { propertyBag.SetValue(InternalSchema.ReplicaListBinary, ReplicaListProperty.GetBytesFromStringArray(array)); } }
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)); }