using System; using System.Collections.Generic; using System.Net; namespace ZeroLevel.Services.Serialization { public static class SerializedObjectWrapperExtension { public static SerializedObjectWrapper WrapToSerialized(this Int32 value) => new SerializedObjectWrapper { Value = value }; public static SerializedObjectWrapper WrapToSerialized(this Boolean value) => new SerializedObjectWrapper { Value = value }; public static SerializedObjectWrapper WrapToSerialized(this Byte value) => new SerializedObjectWrapper { Value = value }; public static SerializedObjectWrapper WrapToSerialized(this Byte[] value) => new SerializedObjectWrapper { Value = value }; public static SerializedObjectWrapper WrapToSerialized(this DateTime value) => new SerializedObjectWrapper { Value = value }; public static SerializedObjectWrapper WrapToSerialized(this Decimal value) => new SerializedObjectWrapper { Value = value }; public static SerializedObjectWrapper WrapToSerialized(this Double value) => new SerializedObjectWrapper { Value = value }; public static SerializedObjectWrapper WrapToSerialized(this Guid value) => new SerializedObjectWrapper { Value = value }; public static SerializedObjectWrapper WrapToSerialized(this IPAddress value) => new SerializedObjectWrapper { Value = value }; public static SerializedObjectWrapper WrapToSerialized(this IPEndPoint value) => new SerializedObjectWrapper { Value = value }; public static SerializedObjectWrapper WrapToSerialized(this Int64 value) => new SerializedObjectWrapper { Value = value }; public static SerializedObjectWrapper WrapToSerialized(this String value) => new SerializedObjectWrapper { Value = value }; public static SerializedObjectWrapper WrapToSerialized(this TimeSpan value) => new SerializedObjectWrapper { Value = value }; public static SerializedObjectWrapper> WrapToSerialized(this IEnumerable value) => new SerializedObjectWrapper> { Value = value }; public static SerializedObjectWrapper> WrapToSerialized(this IEnumerable value) => new SerializedObjectWrapper> { Value = value }; public static SerializedObjectWrapper> WrapToSerialized(this IEnumerable value) => new SerializedObjectWrapper> { Value = value }; public static SerializedObjectWrapper> WrapToSerialized(this IEnumerable value) => new SerializedObjectWrapper> { Value = value }; public static SerializedObjectWrapper> WrapToSerialized(this IEnumerable value) => new SerializedObjectWrapper> { Value = value }; public static SerializedObjectWrapper> WrapToSerialized(this IEnumerable value) => new SerializedObjectWrapper> { Value = value }; public static SerializedObjectWrapper> WrapToSerialized(this IEnumerable value) => new SerializedObjectWrapper> { Value = value }; public static SerializedObjectWrapper> WrapToSerialized(this IEnumerable value) => new SerializedObjectWrapper> { Value = value }; public static SerializedObjectWrapper> WrapToSerialized(this IEnumerable value) => new SerializedObjectWrapper> { Value = value }; public static SerializedObjectWrapper> WrapToSerialized(this IEnumerable value) => new SerializedObjectWrapper> { Value = value }; public static SerializedObjectWrapper> WrapToSerialized(this IEnumerable value) => new SerializedObjectWrapper> { Value = value }; public static SerializedObjectWrapper> WrapToSerialized(this IEnumerable value) where T : IBinarySerializable => new SerializedObjectWrapper> { Value = value }; } }