/// <summary>
 /// Indicates that the headers and request/response line have been written.
 /// Can be called only once per batch message and headers cannot be modified
 /// anymore after this method was called.
 /// </summary>
 internal void WriteMessageDataCompleted()
 {
     DebugUtils.CheckNoExternalCallers();
     this.outputStream = null;
 }
 /// <summary>
 /// Returns true if the specified kind enum has the specified flags set.
 /// </summary>
 /// <param name="kind">The kind enum to test.</param>
 /// <param name="flag">The flag to look for.</param>
 /// <returns>true if the flag is set; false otherwise.</returns>
 internal static bool HasFlag(this ODataResourcePropertyKind kind, ODataResourcePropertyKind flag)
 {
     DebugUtils.CheckNoExternalCallers();
     return((kind & flag) == flag);
 }