public static void Write(BinaryWriter writer, CustomProperties properties)
{
writer.Write(NativeConstants.CustomPropertyVersion.Current);
writer.Write(properties.PropertyValues.Count);
foreach (KeyValuePair<string, CustomProperty> pair in properties.PropertyValues)
{
FilePutString(pair.Value.Name, writer);
FilePutString(pair.Value.Value, writer);
}
}