コード例 #1
0
 private void WriteAsJson(JsonTextWriter jsonWriter)
 {
     jsonWriter.WriteStartObject();
     if (UserStreamAcl != null)
     {
         jsonWriter.WritePropertyName(SystemMetadata.UserStreamAcl);
         StreamMetadata.WriteAcl(jsonWriter, UserStreamAcl);
     }
     if (SystemStreamAcl != null)
     {
         jsonWriter.WritePropertyName(SystemMetadata.SystemStreamAcl);
         StreamMetadata.WriteAcl(jsonWriter, SystemStreamAcl);
     }
     jsonWriter.WriteEndObject();
 }