/// <summary> /// Asynchronously writes a JSON instance annotation name which represents a instance annotation. /// </summary> /// <param name="annotationName">The name of the instance annotation to write.</param> /// <returns>A task that represents the asynchronous write operation.</returns> public Task WriteInstanceAnnotationNameAsync(string annotationName) { this.AssertAsynchronous(); Debug.Assert(!string.IsNullOrEmpty(annotationName), "!string.IsNullOrEmpty(annotationName)"); Debug.Assert(annotationName.StartsWith(JsonLightConstants.ODataAnnotationNamespacePrefix, StringComparison.Ordinal), "annotationName.StartsWith(\"odata.\")"); return(asyncJsonWriter.WriteInstanceAnnotationNameAsync(SimplifyODataAnnotationName(annotationName))); }