From ec1f5dc317182582ebff843c9e8a4d5277405469 Mon Sep 17 00:00:00 2001 From: Erwin de Haan Date: Sun, 6 Jan 2019 21:50:43 +0100 Subject: Mayor code cleanup Add Argument*Exceptions now use proper nameof operators. Added exception messages to quite a few Argument*Exceptions. Fixed rethorwing to be proper syntax. Added a ton of null checkes. (This is only a start, there are about 500 places that need proper null handling) Added some TODOs to log certain exceptions. Fix sln again. Fixed all AssemblyInfo's and added proper copyright (where I could find them) We live in *current year*. Fixed the use of braces. Fixed a ton of properties, and made a fair amount of functions static that should be and can be static. Made more Methods that should be static static. You can now use static to find bad functions! Removed unused variable. And added one more proper XML comment. --- MediaBrowser.Model/Serialization/IJsonSerializer.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'MediaBrowser.Model/Serialization/IJsonSerializer.cs') diff --git a/MediaBrowser.Model/Serialization/IJsonSerializer.cs b/MediaBrowser.Model/Serialization/IJsonSerializer.cs index a582beb7f..06e48f412 100644 --- a/MediaBrowser.Model/Serialization/IJsonSerializer.cs +++ b/MediaBrowser.Model/Serialization/IJsonSerializer.cs @@ -11,7 +11,7 @@ namespace MediaBrowser.Model.Serialization /// /// The obj. /// The stream. - /// obj + /// obj void SerializeToStream(object obj, Stream stream); /// @@ -19,7 +19,7 @@ namespace MediaBrowser.Model.Serialization /// /// The obj. /// The file. - /// obj + /// obj void SerializeToFile(object obj, string file); /// @@ -28,7 +28,7 @@ namespace MediaBrowser.Model.Serialization /// The type. /// The file. /// System.Object. - /// type + /// type object DeserializeFromFile(Type type, string file); /// @@ -37,7 +37,7 @@ namespace MediaBrowser.Model.Serialization /// /// The file. /// ``0. - /// file + /// file T DeserializeFromFile(string file) where T : class; @@ -47,7 +47,7 @@ namespace MediaBrowser.Model.Serialization /// /// The stream. /// ``0. - /// stream + /// stream T DeserializeFromStream(Stream stream); /// @@ -56,7 +56,7 @@ namespace MediaBrowser.Model.Serialization /// /// The text. /// ``0. - /// text + /// text T DeserializeFromString(string text); /// @@ -65,7 +65,7 @@ namespace MediaBrowser.Model.Serialization /// The stream. /// The type. /// System.Object. - /// stream + /// stream object DeserializeFromStream(Stream stream, Type type); /// @@ -74,7 +74,7 @@ namespace MediaBrowser.Model.Serialization /// The json. /// The type. /// System.Object. - /// json + /// json object DeserializeFromString(string json, Type type); /// @@ -82,7 +82,7 @@ namespace MediaBrowser.Model.Serialization /// /// The obj. /// System.String. - /// obj + /// obj string SerializeToString(object obj); Task DeserializeFromStreamAsync(Stream stream, Type type); -- cgit v1.2.3