Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make JsonData Immutable #31203

Closed
wants to merge 10 commits into from
Original file line number Diff line number Diff line change
Expand Up @@ -111,38 +111,23 @@ namespace Azure.Core
[System.Diagnostics.DebuggerDisplayAttribute("{DebuggerDisplay,nq}")]
public partial class JsonData : System.Dynamic.IDynamicMetaObjectProvider, System.IEquatable<Azure.Core.JsonData>
{
public JsonData() { }
public JsonData(object? value) { }
public JsonData(object? value, System.Text.Json.JsonSerializerOptions options, System.Type? type = null) { }
public JsonData(Azure.Response response) { }
public JsonData(System.BinaryData binaryData) { }
public JsonData(byte[] bytes) { }
public JsonData(object value, System.Text.Json.JsonSerializerOptions? options = null) { }
public JsonData(System.ReadOnlyMemory<byte> bytes) { }
public JsonData(string jsonString) { }
public JsonData(System.Text.Json.JsonDocument jsonDocument) { }
public Azure.Core.JsonData this[int arrayIndex] { get { throw null; } set { } }
public Azure.Core.JsonData this[string propertyName] { get { throw null; } set { } }
public Azure.Core.JsonData this[int arrayIndex] { get { throw null; } }
public Azure.Core.JsonData this[string propertyName] { get { throw null; } }
public System.Collections.Generic.IEnumerable<Azure.Core.JsonData> Items { get { throw null; } }
public System.Text.Json.JsonValueKind Kind { get { throw null; } }
public int Length { get { throw null; } }
public System.Collections.Generic.IEnumerable<string> Properties { get { throw null; } }
public void Add(bool value) { }
public void Add(double value) { }
public void Add(int value) { }
public void Add(long value) { }
public Azure.Core.JsonData Add(object? serializable) { throw null; }
public Azure.Core.JsonData Add(object? serializable, System.Text.Json.JsonSerializerOptions options) { throw null; }
public void Add(float value) { }
public void Add(string? value) { }
public Azure.Core.JsonData AddEmptyArray() { throw null; }
public Azure.Core.JsonData AddEmptyObject() { throw null; }
public Azure.Core.JsonData Add<T>(T[] serializable) { throw null; }
public Azure.Core.JsonData Add<T>(T[] serializable, System.Text.Json.JsonSerializerOptions options) { throw null; }
public static Azure.Core.JsonData EmptyArray() { throw null; }
public static Azure.Core.JsonData EmptyObject() { throw null; }
public bool Equals(Azure.Core.JsonData other) { throw null; }
public bool Equals(Azure.Core.JsonData? other) { throw null; }
public override bool Equals(object? obj) { throw null; }
public static Azure.Core.JsonData FromBytes(byte[] utf8Json) { throw null; }
public static Azure.Core.JsonData FromBytes(System.ReadOnlyMemory<byte> utf8Json) { throw null; }
public static Azure.Core.JsonData FromObject<T>(T value, System.Text.Json.JsonSerializerOptions? options = null) { throw null; }
public static Azure.Core.JsonData FromStream(System.IO.Stream utf8Json) { throw null; }
public static Azure.Core.JsonData FromStream(System.IO.Stream utf8JsonStream) { throw null; }
public static System.Threading.Tasks.Task<Azure.Core.JsonData> FromStreamAsync(System.IO.Stream utf8JsonStream, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public static Azure.Core.JsonData FromString(string json) { throw null; }
public Azure.Core.JsonData? Get(string propertyName) { throw null; }
public override int GetHashCode() { throw null; }
public T Get<T>(string propertyName) { throw null; }
Expand All @@ -160,37 +145,15 @@ public void Add(string? value) { }
public static explicit operator float? (Azure.Core.JsonData json) { throw null; }
public static explicit operator float (Azure.Core.JsonData json) { throw null; }
public static explicit operator string (Azure.Core.JsonData json) { throw null; }
public static implicit operator Azure.Core.JsonData (bool value) { throw null; }
public static implicit operator Azure.Core.JsonData (double value) { throw null; }
public static implicit operator Azure.Core.JsonData (int value) { throw null; }
public static implicit operator Azure.Core.JsonData (long value) { throw null; }
public static implicit operator Azure.Core.JsonData (bool? value) { throw null; }
public static implicit operator Azure.Core.JsonData (double? value) { throw null; }
public static implicit operator Azure.Core.JsonData (int? value) { throw null; }
public static implicit operator Azure.Core.JsonData (long? value) { throw null; }
public static implicit operator Azure.Core.JsonData (float? value) { throw null; }
public static implicit operator Azure.Core.JsonData (float value) { throw null; }
public static implicit operator Azure.Core.JsonData (string? value) { throw null; }
public static bool operator !=(Azure.Core.JsonData? left, string? right) { throw null; }
public static bool operator !=(string? left, Azure.Core.JsonData? right) { throw null; }
public void Set(string propertyName, bool value) { }
public void Set(string propertyName, double value) { }
public void Set(string propertyName, int value) { }
public void Set(string propertyName, long value) { }
public Azure.Core.JsonData Set(string propertyName, object? serializable) { throw null; }
public Azure.Core.JsonData Set(string propertyName, object? serializable, System.Text.Json.JsonSerializerOptions options) { throw null; }
public void Set(string propertyName, float value) { }
public void Set(string propertyName, string? value) { }
public Azure.Core.JsonData SetEmptyArray(string propertyName) { throw null; }
public Azure.Core.JsonData SetEmptyObject(string propertyName) { throw null; }
public Azure.Core.JsonData Set<T>(string propertyName, T[] serializable) { throw null; }
public Azure.Core.JsonData Set<T>(string propertyName, T[] serializable, System.Text.Json.JsonSerializerOptions options) { throw null; }
System.Dynamic.DynamicMetaObject System.Dynamic.IDynamicMetaObjectProvider.GetMetaObject(System.Linq.Expressions.Expression parameter) { throw null; }
public System.BinaryData ToBinaryData() { throw null; }
public string ToJsonString() { throw null; }
public override string ToString() { throw null; }
public T To<T>() { throw null; }
public T To<T>(System.Text.Json.JsonSerializerOptions options) { throw null; }
public long WriteTo(System.IO.Stream stream) { throw null; }
public System.Threading.Tasks.Task<long> WriteToAsync(System.IO.Stream stream, System.Threading.CancellationToken cancellationToken) { throw null; }
public System.Threading.Tasks.Task<long> WriteToAsync(System.IO.Stream stream, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
}
}
Loading