From 2d06095447b972c8c7239277428e2c67c8b7ca86 Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Mon, 25 Feb 2013 22:43:04 -0500 Subject: plugin security fixes and other abstractions --- .../Serialization/JsonSerializer.cs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'MediaBrowser.Common.Implementations/Serialization') diff --git a/MediaBrowser.Common.Implementations/Serialization/JsonSerializer.cs b/MediaBrowser.Common.Implementations/Serialization/JsonSerializer.cs index bc8935a86..4a6b9255c 100644 --- a/MediaBrowser.Common.Implementations/Serialization/JsonSerializer.cs +++ b/MediaBrowser.Common.Implementations/Serialization/JsonSerializer.cs @@ -17,12 +17,10 @@ namespace MediaBrowser.Common.Implementations.Serialization /// /// Serializes to stream. /// - /// /// The obj. /// The stream. /// obj - public void SerializeToStream(T obj, Stream stream) - where T : class + public void SerializeToStream(object obj, Stream stream) { if (obj == null) { @@ -40,12 +38,10 @@ namespace MediaBrowser.Common.Implementations.Serialization /// /// Serializes to file. /// - /// /// The obj. /// The file. /// obj - public void SerializeToFile(T obj, string file) - where T : class + public void SerializeToFile(object obj, string file) { if (obj == null) { @@ -200,12 +196,10 @@ namespace MediaBrowser.Common.Implementations.Serialization /// /// Serializes to string. /// - /// /// The obj. /// System.String. /// obj - public string SerializeToString(T obj) - where T : class + public string SerializeToString(object obj) { if (obj == null) { @@ -218,12 +212,10 @@ namespace MediaBrowser.Common.Implementations.Serialization /// /// Serializes to bytes. /// - /// /// The obj. /// System.Byte[][]. /// obj - public byte[] SerializeToBytes(T obj) - where T : class + public byte[] SerializeToBytes(object obj) { if (obj == null) { -- cgit v1.2.3