Skip to content

Commit 9a814ad

Browse files
yang-xiaodongniemyjski
authored andcommitted
Make json.net internal (#199)
* Change Newtonsoft.Json to internal * Rename JsonIgnoreAttribute to DataMemberIgnoreAttribute * Make DataMemberIgnoreAttribute access level to public * Update update-json.ps1 Update files access modifying to internal * Update update-json.ps1 * Update update-json.ps1 * Add rename item to powershell script * Rename JsonIgnoreAttribute to ExceptionlessIgnoreAttribute
1 parent 997e8f0 commit 9a814ad

File tree

130 files changed

+205
-194
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+205
-194
lines changed

src/Exceptionless/EventBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public EventBuilder AddTags(params string[] tags) {
115115

116116
/// <summary>
117117
/// Sets an extended property value to include with the event. Use either <paramref name="excludedPropertyNames" /> or
118-
/// <see cref="Exceptionless.Json.JsonIgnoreAttribute" /> to exclude data from being included in the event report.
118+
/// <see cref="Exceptionless.Json.ExceptionlessIgnoreAttribute" /> to exclude data from being included in the event report.
119119
/// </summary>
120120
/// <param name="name">The name of the object to add.</param>
121121
/// <param name="value">The data object to add.</param>
@@ -131,7 +131,7 @@ public EventBuilder SetProperty(string name, object value, int? maxDepth = null,
131131

132132
/// <summary>
133133
/// Adds the object to extended data. Use either <paramref name="excludedPropertyNames" /> or
134-
/// <see cref="Exceptionless.Json.JsonIgnoreAttribute" /> to exclude data from being included in the event.
134+
/// <see cref="Exceptionless.Json.ExceptionlessIgnoreAttribute" /> to exclude data from being included in the event.
135135
/// </summary>
136136
/// <param name="data">The data object to add.</param>
137137
/// <param name="name">The name of the object to add.</param>

src/Exceptionless/Newtonsoft.Json/Bson/BsonObjectId.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace Exceptionless.Json.Bson
3131
/// <summary>
3232
/// Represents a BSON Oid (object id).
3333
/// </summary>
34-
public class BsonObjectId
34+
internal class BsonObjectId
3535
{
3636
/// <summary>
3737
/// Gets or sets the value of the Oid.

src/Exceptionless/Newtonsoft.Json/Bson/BsonReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace Exceptionless.Json.Bson
3737
/// <summary>
3838
/// Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data.
3939
/// </summary>
40-
public class BsonReader : JsonReader
40+
internal class BsonReader : JsonReader
4141
{
4242
private const int MaxCharBytesSize = 128;
4343
private static readonly byte[] SeqRange1 = new byte[] { 0, 127 }; // range of 1-byte sequence

src/Exceptionless/Newtonsoft.Json/Bson/BsonWriter.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ namespace Exceptionless.Json.Bson
4040
/// <summary>
4141
/// Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data.
4242
/// </summary>
43-
public class BsonWriter : JsonWriter
43+
internal class BsonWriter : JsonWriter
4444
{
4545
private readonly BsonBinaryWriter _writer;
4646

@@ -294,7 +294,7 @@ public override void WriteValue(int value)
294294
/// Writes a <see cref="UInt32"/> value.
295295
/// </summary>
296296
/// <param name="value">The <see cref="UInt32"/> value to write.</param>
297-
[CLSCompliant(false)]
297+
298298
public override void WriteValue(uint value)
299299
{
300300
if (value > int.MaxValue)
@@ -320,7 +320,7 @@ public override void WriteValue(long value)
320320
/// Writes a <see cref="UInt64"/> value.
321321
/// </summary>
322322
/// <param name="value">The <see cref="UInt64"/> value to write.</param>
323-
[CLSCompliant(false)]
323+
324324
public override void WriteValue(ulong value)
325325
{
326326
if (value > long.MaxValue)
@@ -376,7 +376,7 @@ public override void WriteValue(short value)
376376
/// Writes a <see cref="UInt16"/> value.
377377
/// </summary>
378378
/// <param name="value">The <see cref="UInt16"/> value to write.</param>
379-
[CLSCompliant(false)]
379+
380380
public override void WriteValue(ushort value)
381381
{
382382
base.WriteValue(value);
@@ -413,7 +413,7 @@ public override void WriteValue(byte value)
413413
/// Writes a <see cref="SByte"/> value.
414414
/// </summary>
415415
/// <param name="value">The <see cref="SByte"/> value to write.</param>
416-
[CLSCompliant(false)]
416+
417417
public override void WriteValue(sbyte value)
418418
{
419419
base.WriteValue(value);

src/Exceptionless/Newtonsoft.Json/ConstructorHandling.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace Exceptionless.Json
2828
/// <summary>
2929
/// Specifies how constructors are used when initializing objects during deserialization by the <see cref="JsonSerializer"/>.
3030
/// </summary>
31-
public enum ConstructorHandling
31+
internal enum ConstructorHandling
3232
{
3333
/// <summary>
3434
/// First attempt to use the public default constructor, then fall back to single paramatized constructor, then the non-public default constructor.

src/Exceptionless/Newtonsoft.Json/Converters/BinaryConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace Exceptionless.Json.Converters
3737
/// <summary>
3838
/// Converts a binary value to and from a base 64 string value.
3939
/// </summary>
40-
public class BinaryConverter : JsonConverter
40+
internal class BinaryConverter : JsonConverter
4141
{
4242
#if !NET20
4343
private const string BinaryTypeName = "System.Data.Linq.Binary";

src/Exceptionless/Newtonsoft.Json/Converters/BsonObjectIdConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace Exceptionless.Json.Converters
3333
/// <summary>
3434
/// Converts a <see cref="BsonObjectId"/> to and from JSON and BSON.
3535
/// </summary>
36-
public class BsonObjectIdConverter : JsonConverter
36+
internal class BsonObjectIdConverter : JsonConverter
3737
{
3838
/// <summary>
3939
/// Writes the JSON representation of the object.

src/Exceptionless/Newtonsoft.Json/Converters/CustomCreationConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace Exceptionless.Json.Converters
3333
/// Create a custom object
3434
/// </summary>
3535
/// <typeparam name="T">The object type to convert.</typeparam>
36-
public abstract class CustomCreationConverter<T> : JsonConverter
36+
internal abstract class CustomCreationConverter<T> : JsonConverter
3737
{
3838
/// <summary>
3939
/// Writes the JSON representation of the object.

src/Exceptionless/Newtonsoft.Json/Converters/DataSetConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace Exceptionless.Json.Converters
3333
/// <summary>
3434
/// Converts a <see cref="DataSet"/> to and from JSON.
3535
/// </summary>
36-
public class DataSetConverter : JsonConverter
36+
internal class DataSetConverter : JsonConverter
3737
{
3838
/// <summary>
3939
/// Writes the JSON representation of the object.

src/Exceptionless/Newtonsoft.Json/Converters/DataTableConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace Exceptionless.Json.Converters
3636
/// <summary>
3737
/// Converts a <see cref="DataTable"/> to and from JSON.
3838
/// </summary>
39-
public class DataTableConverter : JsonConverter
39+
internal class DataTableConverter : JsonConverter
4040
{
4141
/// <summary>
4242
/// Writes the JSON representation of the object.

0 commit comments

Comments
 (0)