diff --git a/.gitignore b/.gitignore
index f30e5881..890f32ec 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@
[Bb]in/
[Oo]bj/
[Pp]ackages/
+.vs/
*.suo
*.user
*.userprefs
diff --git a/Z.ExtensionMethods.Generated.sln b/Z.ExtensionMethods.Generated.sln
index 2d7cd6aa..0145c5de 100644
--- a/Z.ExtensionMethods.Generated.sln
+++ b/Z.ExtensionMethods.Generated.sln
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2013
-VisualStudioVersion = 12.0.31101.0
+# Visual Studio 15
+VisualStudioVersion = 15.0.27703.2035
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{9C296DC8-C7D0-4D87-8F49-BC811C7C7C0C}"
EndProject
@@ -97,6 +97,16 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Z.ExtensionMethods.Data.MyS
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Z.ExtensionMethods.Data.SqlServerCe", "generated\Z.ExtensionMethods.Data.SqlServerCe\Z.ExtensionMethods.Data.SqlServerCe.csproj", "{23969445-2640-459E-AC0E-E2F991752B2B}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Z.ExtensionMethods.NetStandard20", "generated\Z.ExtensionMethods.NetStandard20\Z.ExtensionMethods.NetStandard20.csproj", "{A22152F7-43AD-470C-8217-9DEDEB7DBBDB}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Z.ExtensionMethods.WithNamespace.NetStandard20", "generated\Z.ExtensionMethods.WithNamespace.NetStandard20\Z.ExtensionMethods.WithNamespace.NetStandard20.csproj", "{26821CEF-45EC-4EEA-98D2-CBBAB934D58F}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Z.ExtensionMethods.WithObjectNamespace.NetStandard20", "generated\Z.ExtensionMethods.WithObjectNamespace.NetStandard20\Z.ExtensionMethods.WithObjectNamespace.NetStandard20.csproj", "{58605969-97C9-4431-B0C0-B87AB7A620FF}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Z.ExtensionMethods.WithOneNamespace.NetStandard20", "generated\Z.ExtensionMethods.WithOneNamespace.NetStandard20\Z.ExtensionMethods.WithOneNamespace.NetStandard20.csproj", "{2453F5E9-89E4-4ACB-A133-E0D0BE1A5B2B}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Z.ExtensionMethods.WithTwoNamespace.NetStandard20", "generated\Z.ExtensionMethods.WithTwoNamespace.NetStandard20\Z.ExtensionMethods.WithTwoNamespace.NetStandard20.csproj", "{AEE86AD6-4C8E-455D-B6CE-D6B614220DEB}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -275,6 +285,26 @@ Global
{23969445-2640-459E-AC0E-E2F991752B2B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{23969445-2640-459E-AC0E-E2F991752B2B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{23969445-2640-459E-AC0E-E2F991752B2B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A22152F7-43AD-470C-8217-9DEDEB7DBBDB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A22152F7-43AD-470C-8217-9DEDEB7DBBDB}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A22152F7-43AD-470C-8217-9DEDEB7DBBDB}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A22152F7-43AD-470C-8217-9DEDEB7DBBDB}.Release|Any CPU.Build.0 = Release|Any CPU
+ {26821CEF-45EC-4EEA-98D2-CBBAB934D58F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {26821CEF-45EC-4EEA-98D2-CBBAB934D58F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {26821CEF-45EC-4EEA-98D2-CBBAB934D58F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {26821CEF-45EC-4EEA-98D2-CBBAB934D58F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {58605969-97C9-4431-B0C0-B87AB7A620FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {58605969-97C9-4431-B0C0-B87AB7A620FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {58605969-97C9-4431-B0C0-B87AB7A620FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {58605969-97C9-4431-B0C0-B87AB7A620FF}.Release|Any CPU.Build.0 = Release|Any CPU
+ {2453F5E9-89E4-4ACB-A133-E0D0BE1A5B2B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2453F5E9-89E4-4ACB-A133-E0D0BE1A5B2B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2453F5E9-89E4-4ACB-A133-E0D0BE1A5B2B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2453F5E9-89E4-4ACB-A133-E0D0BE1A5B2B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {AEE86AD6-4C8E-455D-B6CE-D6B614220DEB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {AEE86AD6-4C8E-455D-B6CE-D6B614220DEB}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {AEE86AD6-4C8E-455D-B6CE-D6B614220DEB}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {AEE86AD6-4C8E-455D-B6CE-D6B614220DEB}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -307,5 +337,13 @@ Global
{A29A70F3-60DC-494F-98F2-90E33EE0FBD5} = {234D0FBA-C701-4C89-A52D-1F41BCD58DC8}
{5B5E31BE-2921-48DF-A78F-898D29ED1C01} = {234D0FBA-C701-4C89-A52D-1F41BCD58DC8}
{23969445-2640-459E-AC0E-E2F991752B2B} = {234D0FBA-C701-4C89-A52D-1F41BCD58DC8}
+ {A22152F7-43AD-470C-8217-9DEDEB7DBBDB} = {234D0FBA-C701-4C89-A52D-1F41BCD58DC8}
+ {26821CEF-45EC-4EEA-98D2-CBBAB934D58F} = {234D0FBA-C701-4C89-A52D-1F41BCD58DC8}
+ {58605969-97C9-4431-B0C0-B87AB7A620FF} = {234D0FBA-C701-4C89-A52D-1F41BCD58DC8}
+ {2453F5E9-89E4-4ACB-A133-E0D0BE1A5B2B} = {234D0FBA-C701-4C89-A52D-1F41BCD58DC8}
+ {AEE86AD6-4C8E-455D-B6CE-D6B614220DEB} = {234D0FBA-C701-4C89-A52D-1F41BCD58DC8}
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {F05F4364-ACDF-43E4-BF27-621040293629}
EndGlobalSection
EndGlobal
diff --git a/src/Z.Caching/System.Object/Object.FromCache.cs b/src/Z.Caching/System.Object/Object.FromCache.cs
index 754ffeb5..cf0a6829 100644
--- a/src/Z.Caching/System.Object/Object.FromCache.cs
+++ b/src/Z.Caching/System.Object/Object.FromCache.cs
@@ -6,10 +6,13 @@
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
using System;
using System.Linq.Expressions;
+#if !NETSTANDARD
using System.Runtime.Caching;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
/// A TKey extension method that from cache.
/// Generic type parameter.
/// Type of the value.
@@ -88,4 +91,5 @@ public static TValue FromCache(this TKey @this, MemoryCache cache,
string key = string.Concat("Z.Caching.FromCache;", typeof (TKey).FullName, valueFactory.ToString());
return @this.FromCache(cache, key, valueFactory);
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Caching/System.Runtime.Caching.MemoryCache/MemoryCache.AddOrGetExisting.cs b/src/Z.Caching/System.Runtime.Caching.MemoryCache/MemoryCache.AddOrGetExisting.cs
index 5c86d514..28befd38 100644
--- a/src/Z.Caching/System.Runtime.Caching.MemoryCache/MemoryCache.AddOrGetExisting.cs
+++ b/src/Z.Caching/System.Runtime.Caching.MemoryCache/MemoryCache.AddOrGetExisting.cs
@@ -5,10 +5,13 @@
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
using System;
+#if !NETSTANDARD
using System.Runtime.Caching;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
/// A MemoryCache extension method that adds an or get existing.
/// Type of the value.
/// The cache to act on.
@@ -70,4 +73,5 @@ public static TValue AddOrGetExisting(this MemoryCache cache, string key
return item.Value;
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Core/System.ByteArray/ByteArray.ToImage.cs b/src/Z.Core/System.ByteArray/ByteArray.ToImage.cs
index 6d98c5de..4fa1ec70 100644
--- a/src/Z.Core/System.ByteArray/ByteArray.ToImage.cs
+++ b/src/Z.Core/System.ByteArray/ByteArray.ToImage.cs
@@ -4,11 +4,14 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Drawing;
using System.IO;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A byte[] extension method that converts the @this to an image.
///
@@ -21,4 +24,5 @@ public static Image ToImage(this byte[] @this)
return Image.FromStream(ms);
}
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Core/System.ByteArray/System.Web.HttpServerUtility/ByteArray.UrlTokenEncode.cs b/src/Z.Core/System.ByteArray/System.Web.HttpServerUtility/ByteArray.UrlTokenEncode.cs
index 9ffe673a..7f413911 100644
--- a/src/Z.Core/System.ByteArray/System.Web.HttpServerUtility/ByteArray.UrlTokenEncode.cs
+++ b/src/Z.Core/System.ByteArray/System.Web.HttpServerUtility/ByteArray.UrlTokenEncode.cs
@@ -5,10 +5,13 @@
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
using System;
+#if !NETSTANDARD
using System.Web;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// Encodes a byte array into its equivalent string representation using base 64 digits, which is usable for
/// transmission on the URL.
@@ -22,4 +25,5 @@ public static String UrlTokenEncode(this Byte[] input)
{
return HttpServerUtility.UrlTokenEncode(input);
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Core/System.ByteArray/System.Web.HttpUtility/ByteArray.UrlDecode.cs b/src/Z.Core/System.ByteArray/System.Web.HttpUtility/ByteArray.UrlDecode.cs
index e8a35b43..cd8db77f 100644
--- a/src/Z.Core/System.ByteArray/System.Web.HttpUtility/ByteArray.UrlDecode.cs
+++ b/src/Z.Core/System.ByteArray/System.Web.HttpUtility/ByteArray.UrlDecode.cs
@@ -6,10 +6,13 @@
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
using System;
using System.Text;
+#if !NETSTANDARD
using System.Web;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// Converts a URL-encoded byte array into a decoded string using the specified decoding object.
///
@@ -34,4 +37,5 @@ public static String UrlDecode(this Byte[] bytes, Int32 offset, Int32 count, Enc
{
return HttpUtility.UrlDecode(bytes, offset, count, e);
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Core/System.ByteArray/System.Web.HttpUtility/ByteArray.UrlDecodeToBytes.cs b/src/Z.Core/System.ByteArray/System.Web.HttpUtility/ByteArray.UrlDecodeToBytes.cs
index 8ee7e489..250916d3 100644
--- a/src/Z.Core/System.ByteArray/System.Web.HttpUtility/ByteArray.UrlDecodeToBytes.cs
+++ b/src/Z.Core/System.ByteArray/System.Web.HttpUtility/ByteArray.UrlDecodeToBytes.cs
@@ -5,10 +5,13 @@
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
using System;
+#if !NETSTANDARD
using System.Web;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// Converts a URL-encoded array of bytes into a decoded array of bytes.
///
@@ -31,4 +34,5 @@ public static Byte[] UrlDecodeToBytes(this Byte[] bytes, Int32 offset, Int32 cou
{
return HttpUtility.UrlDecodeToBytes(bytes, offset, count);
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Core/System.ByteArray/System.Web.HttpUtility/ByteArray.UrlEncode.cs b/src/Z.Core/System.ByteArray/System.Web.HttpUtility/ByteArray.UrlEncode.cs
index cd1f48d9..248b3c8e 100644
--- a/src/Z.Core/System.ByteArray/System.Web.HttpUtility/ByteArray.UrlEncode.cs
+++ b/src/Z.Core/System.ByteArray/System.Web.HttpUtility/ByteArray.UrlEncode.cs
@@ -5,10 +5,13 @@
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
using System;
+#if !NETSTANDARD
using System.Web;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// Converts a byte array into an encoded URL string.
///
@@ -31,4 +34,5 @@ public static String UrlEncode(this Byte[] bytes, Int32 offset, Int32 count)
{
return HttpUtility.UrlEncode(bytes, offset, count);
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Core/System.ByteArray/System.Web.HttpUtility/ByteArray.UrlEncodeToBytes.cs b/src/Z.Core/System.ByteArray/System.Web.HttpUtility/ByteArray.UrlEncodeToBytes.cs
index 776a0b1b..205d0a6f 100644
--- a/src/Z.Core/System.ByteArray/System.Web.HttpUtility/ByteArray.UrlEncodeToBytes.cs
+++ b/src/Z.Core/System.ByteArray/System.Web.HttpUtility/ByteArray.UrlEncodeToBytes.cs
@@ -5,10 +5,13 @@
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
using System;
+#if !NETSTANDARD
using System.Web;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// Converts an array of bytes into a URL-encoded array of bytes.
///
@@ -31,4 +34,5 @@ public static Byte[] UrlEncodeToBytes(this Byte[] bytes, Int32 offset, Int32 cou
{
return HttpUtility.UrlEncodeToBytes(bytes, offset, count);
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Core/System.Int32/System.Drawing.Color/Int32.FromArgb.cs b/src/Z.Core/System.Int32/System.Drawing.Color/Int32.FromArgb.cs
index f503eb47..dd483c0b 100644
--- a/src/Z.Core/System.Int32/System.Drawing.Color/Int32.FromArgb.cs
+++ b/src/Z.Core/System.Int32/System.Drawing.Color/Int32.FromArgb.cs
@@ -5,10 +5,13 @@
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
using System;
+#if !NETSTANDARD
using System.Drawing;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// Creates a structure from a 32-bit ARGB value.
///
@@ -64,4 +67,5 @@ public static Color FromArgb(this Int32 argb, Int32 green, Int32 blue)
{
return Color.FromArgb(argb, green, blue);
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Core/System.Int32/System.Drawing.ColorTranslator/Int32.FromOle.cs b/src/Z.Core/System.Int32/System.Drawing.ColorTranslator/Int32.FromOle.cs
index 4ebc864d..48a8a783 100644
--- a/src/Z.Core/System.Int32/System.Drawing.ColorTranslator/Int32.FromOle.cs
+++ b/src/Z.Core/System.Int32/System.Drawing.ColorTranslator/Int32.FromOle.cs
@@ -5,10 +5,13 @@
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
using System;
+#if !NETSTANDARD
using System.Drawing;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// Translates an OLE color value to a GDI+ structure.
///
@@ -18,4 +21,5 @@ public static Color FromOle(this Int32 oleColor)
{
return ColorTranslator.FromOle(oleColor);
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Core/System.Int32/System.Drawing.ColorTranslator/Int32.FromWin32.cs b/src/Z.Core/System.Int32/System.Drawing.ColorTranslator/Int32.FromWin32.cs
index 2e7beed9..a1c9872e 100644
--- a/src/Z.Core/System.Int32/System.Drawing.ColorTranslator/Int32.FromWin32.cs
+++ b/src/Z.Core/System.Int32/System.Drawing.ColorTranslator/Int32.FromWin32.cs
@@ -5,10 +5,12 @@
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
using System;
+#if !NETSTANDARD
using System.Drawing;
-
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// Translates a Windows color value to a GDI+ structure.
///
@@ -18,4 +20,5 @@ public static Color FromWin32(this Int32 win32Color)
{
return ColorTranslator.FromWin32(win32Color);
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Core/System.String/String.ToPlural.cs b/src/Z.Core/System.String/String.ToPlural.cs
index de0bfc2c..1810898c 100644
--- a/src/Z.Core/System.String/String.ToPlural.cs
+++ b/src/Z.Core/System.String/String.ToPlural.cs
@@ -4,11 +4,14 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Data.Entity.Design.PluralizationServices;
using System.Globalization;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A string extension method that converts the @this to a plural.
///
@@ -29,4 +32,5 @@ public static string ToPlural(this string @this, CultureInfo cultureInfo)
{
return PluralizationService.CreateService(cultureInfo).Pluralize(@this);
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Core/System.Type/System.Activator/Type.CreateInstance.cs b/src/Z.Core/System.Type/System.Activator/Type.CreateInstance.cs
index 42e79caf..7ae8c92a 100644
--- a/src/Z.Core/System.Type/System.Activator/Type.CreateInstance.cs
+++ b/src/Z.Core/System.Type/System.Activator/Type.CreateInstance.cs
@@ -5,11 +5,14 @@
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
using System;
+#if !NETSTANDARD
using System.Globalization;
using System.Reflection;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// Creates an instance of the specified type using the constructor that best matches the specified parameters.
///
@@ -127,4 +130,5 @@ public static Object CreateInstance(this Type type, Boolean nonPublic)
{
return Activator.CreateInstance(type, nonPublic);
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Core/System.Type/System.Activator/Type.GetObject.cs b/src/Z.Core/System.Type/System.Activator/Type.GetObject.cs
index 04cc7106..19adcba8 100644
--- a/src/Z.Core/System.Type/System.Activator/Type.GetObject.cs
+++ b/src/Z.Core/System.Type/System.Activator/Type.GetObject.cs
@@ -8,6 +8,7 @@
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// Creates a proxy for the well-known object indicated by the specified type and URL.
///
@@ -30,4 +31,5 @@ public static Object GetObject(this Type type, String url, Object state)
{
return Activator.GetObject(type, url, state);
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Core/System.Type/Type.CreateInstance.cs b/src/Z.Core/System.Type/Type.CreateInstance.cs
index e52aef17..85b4d756 100644
--- a/src/Z.Core/System.Type/Type.CreateInstance.cs
+++ b/src/Z.Core/System.Type/Type.CreateInstance.cs
@@ -5,11 +5,14 @@
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
using System;
+#if !NETSTANDARD
using System.Globalization;
using System.Reflection;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A Type extension method that creates an instance.
///
@@ -88,4 +91,5 @@ public static T CreateInstance(this Type @this, Boolean nonPublic)
{
return (T) Activator.CreateInstance(@this, nonPublic);
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Drawing/System.Drawing.Color/System.Drawing.ColorTranslator/Color.ToHtml.cs b/src/Z.Drawing/System.Drawing.Color/System.Drawing.ColorTranslator/Color.ToHtml.cs
index 09eb1eca..fe107621 100644
--- a/src/Z.Drawing/System.Drawing.Color/System.Drawing.ColorTranslator/Color.ToHtml.cs
+++ b/src/Z.Drawing/System.Drawing.Color/System.Drawing.ColorTranslator/Color.ToHtml.cs
@@ -5,10 +5,13 @@
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
using System;
+#if !NETSTANDARD
using System.Drawing;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// Translates the specified structure to an HTML string color representation.
///
@@ -18,4 +21,5 @@ public static String ToHtml(this Color c)
{
return ColorTranslator.ToHtml(c);
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Drawing/System.Drawing.Color/System.Drawing.ColorTranslator/Color.ToOle.cs b/src/Z.Drawing/System.Drawing.Color/System.Drawing.ColorTranslator/Color.ToOle.cs
index 60e8aebf..b8cfb890 100644
--- a/src/Z.Drawing/System.Drawing.Color/System.Drawing.ColorTranslator/Color.ToOle.cs
+++ b/src/Z.Drawing/System.Drawing.Color/System.Drawing.ColorTranslator/Color.ToOle.cs
@@ -5,10 +5,13 @@
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
using System;
+#if !NETSTANDARD
using System.Drawing;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// Translates the specified structure to an OLE color.
///
@@ -18,4 +21,5 @@ public static Int32 ToOle(this Color c)
{
return ColorTranslator.ToOle(c);
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Drawing/System.Drawing.Color/System.Drawing.ColorTranslator/Color.ToWin32.cs b/src/Z.Drawing/System.Drawing.Color/System.Drawing.ColorTranslator/Color.ToWin32.cs
index e1a6e572..b07d6ab6 100644
--- a/src/Z.Drawing/System.Drawing.Color/System.Drawing.ColorTranslator/Color.ToWin32.cs
+++ b/src/Z.Drawing/System.Drawing.Color/System.Drawing.ColorTranslator/Color.ToWin32.cs
@@ -5,10 +5,13 @@
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
using System;
+#if !NETSTANDARD
using System.Drawing;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// Translates the specified structure to a Windows color.
///
@@ -18,4 +21,5 @@ public static Int32 ToWin32(this Color c)
{
return ColorTranslator.ToWin32(c);
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Drawing/System.Drawing.Image/Image.Cut.cs b/src/Z.Drawing/System.Drawing.Image/Image.Cut.cs
index 897603e7..6622d3a6 100644
--- a/src/Z.Drawing/System.Drawing.Image/Image.Cut.cs
+++ b/src/Z.Drawing/System.Drawing.Image/Image.Cut.cs
@@ -4,10 +4,14 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+
+#if !NETSTANDARD
using System.Drawing;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// An Image extension method that cuts an image.
///
@@ -30,4 +34,5 @@ public static Image Cut(this Image @this, int width, int height, int x, int y)
return r;
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Drawing/System.Drawing.Image/Image.Scale.cs b/src/Z.Drawing/System.Drawing.Image/Image.Scale.cs
index b9060988..926ece0f 100644
--- a/src/Z.Drawing/System.Drawing.Image/Image.Scale.cs
+++ b/src/Z.Drawing/System.Drawing.Image/Image.Scale.cs
@@ -5,11 +5,15 @@
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
using System;
+
+#if !NETSTANDARD
using System.Drawing;
using System.Drawing.Drawing2D;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// An Image extension method that scales an image to the specific ratio.
///
@@ -57,4 +61,5 @@ public static Image Scale(this Image @this, int width, int height)
return r;
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.IO/System.IO.DirectoryInfo/DirectoryInfo.CreateAllDirectories.cs b/src/Z.IO/System.IO.DirectoryInfo/DirectoryInfo.CreateAllDirectories.cs
index 917629df..0d81c371 100644
--- a/src/Z.IO/System.IO.DirectoryInfo/DirectoryInfo.CreateAllDirectories.cs
+++ b/src/Z.IO/System.IO.DirectoryInfo/DirectoryInfo.CreateAllDirectories.cs
@@ -5,10 +5,13 @@
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
using System.IO;
+#if !NETSTANDARD
using System.Security.AccessControl;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// Creates all directories and subdirectories in the specified @this.
///
@@ -99,4 +102,5 @@ public static DirectoryInfo CreateAllDirectories(this DirectoryInfo @this, Direc
{
return Directory.CreateDirectory(@this.FullName, directorySecurity);
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.IO/System.IO.DirectoryInfo/DirectoryInfo.EnsureDirectoryExists.cs b/src/Z.IO/System.IO.DirectoryInfo/DirectoryInfo.EnsureDirectoryExists.cs
index cf304eba..7cd3fee8 100644
--- a/src/Z.IO/System.IO.DirectoryInfo/DirectoryInfo.EnsureDirectoryExists.cs
+++ b/src/Z.IO/System.IO.DirectoryInfo/DirectoryInfo.EnsureDirectoryExists.cs
@@ -5,7 +5,9 @@
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
using System.IO;
+#if !NETSTANDARD
using System.Security.AccessControl;
+#endif
public static partial class Extensions
{
@@ -56,6 +58,7 @@ public static DirectoryInfo EnsureDirectoryExists(this DirectoryInfo @this)
return Directory.CreateDirectory(@this.FullName);
}
+#if !NETSTANDARD
///
/// Creates all directories and subdirectories in the specified @this if the directory doesn't already exists.
/// This methods is the same as FileInfo.CreateDirectory however it's less ambigues about what happen if the
@@ -103,4 +106,5 @@ public static DirectoryInfo EnsureDirectoryExists(this DirectoryInfo @this, Dire
{
return Directory.CreateDirectory(@this.FullName, directorySecurity);
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.IO/System.IO.FileInfo/FileInfo.CreateDirectory.cs b/src/Z.IO/System.IO.FileInfo/FileInfo.CreateDirectory.cs
index 4be27130..f301827b 100644
--- a/src/Z.IO/System.IO.FileInfo/FileInfo.CreateDirectory.cs
+++ b/src/Z.IO/System.IO.FileInfo/FileInfo.CreateDirectory.cs
@@ -5,7 +5,9 @@
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
using System.IO;
+#if !NETSTANDARD
using System.Security.AccessControl;
+#endif
public static partial class Extensions
{
@@ -54,6 +56,7 @@ public static DirectoryInfo CreateDirectory(this FileInfo @this)
return Directory.CreateDirectory(@this.Directory.FullName);
}
+#if !NETSTANDARD
///
/// Creates all the directories in the specified @this, applying the specified Windows security.
///
@@ -99,4 +102,5 @@ public static DirectoryInfo CreateDirectory(this FileInfo @this, DirectorySecuri
{
return Directory.CreateDirectory(@this.Directory.FullName, directorySecurity);
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.IO/System.IO.FileInfo/FileInfo.EnsureDirectoryExists.cs b/src/Z.IO/System.IO.FileInfo/FileInfo.EnsureDirectoryExists.cs
index 703ea03a..8cbc64aa 100644
--- a/src/Z.IO/System.IO.FileInfo/FileInfo.EnsureDirectoryExists.cs
+++ b/src/Z.IO/System.IO.FileInfo/FileInfo.EnsureDirectoryExists.cs
@@ -5,7 +5,9 @@
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
using System.IO;
+#if !NETSTANDARD
using System.Security.AccessControl;
+#endif
public static partial class Extensions
{
@@ -56,6 +58,7 @@ public static DirectoryInfo EnsureDirectoryExists(this FileInfo @this)
return Directory.CreateDirectory(@this.Directory.FullName);
}
+#if !NETSTANDARD
///
/// Creates all directories and subdirectories in the specified @this if the directory doesn't already exists.
/// This methods is the same as FileInfo.CreateDirectory however it's less ambigues about what happen if the
@@ -103,4 +106,5 @@ public static DirectoryInfo EnsureDirectoryExists(this FileInfo @this, Directory
{
return Directory.CreateDirectory(@this.Directory.FullName, directorySecurity);
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Serialization/System.Object/Object.SerializeJavaScript.cs b/src/Z.Serialization/System.Object/Object.SerializeJavaScript.cs
index f91605f1..2a858d43 100644
--- a/src/Z.Serialization/System.Object/Object.SerializeJavaScript.cs
+++ b/src/Z.Serialization/System.Object/Object.SerializeJavaScript.cs
@@ -4,10 +4,13 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web.Script.Serialization;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A T extension method that serialize java script.
///
@@ -19,4 +22,5 @@ public static string SerializeJavaScript(this T @this)
var serializer = new JavaScriptSerializer();
return serializer.Serialize(@this);
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Serialization/System.String/String.DeserializeJavaScript.cs b/src/Z.Serialization/System.String/String.DeserializeJavaScript.cs
index f4b4d9d8..4bf1fb98 100644
--- a/src/Z.Serialization/System.String/String.DeserializeJavaScript.cs
+++ b/src/Z.Serialization/System.String/String.DeserializeJavaScript.cs
@@ -4,10 +4,13 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web.Script.Serialization;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A string extension method that deserialize a string binary as <T>.
///
@@ -19,4 +22,5 @@ public static T DeserializeJavaScript(this string @this)
var serializer = new JavaScriptSerializer();
return serializer.Deserialize(@this);
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.HttpResponse/HttpResponse.Redirect.cs b/src/Z.Web/System.Web.HttpResponse/HttpResponse.Redirect.cs
index 24e64b81..a50c2212 100644
--- a/src/Z.Web/System.Web.HttpResponse/HttpResponse.Redirect.cs
+++ b/src/Z.Web/System.Web.HttpResponse/HttpResponse.Redirect.cs
@@ -4,10 +4,13 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A HttpResponse extension method that redirects.
///
@@ -19,4 +22,5 @@ public static void Redirect(this HttpResponse @this, string urlFormat, params ob
string url = string.Format(urlFormat, values);
@this.Redirect(url, true);
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.HttpResponse/HttpResponse.Reload.cs b/src/Z.Web/System.Web.HttpResponse/HttpResponse.Reload.cs
index 3c52924a..d9f53404 100644
--- a/src/Z.Web/System.Web.HttpResponse/HttpResponse.Reload.cs
+++ b/src/Z.Web/System.Web.HttpResponse/HttpResponse.Reload.cs
@@ -4,10 +4,13 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A HttpResponse extension method that reloads the given this.
///
@@ -16,4 +19,5 @@ public static void Reload(this HttpResponse @this)
{
@this.Redirect(HttpContext.Current.Request.Url.ToString(), true);
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.HttpResponse/HttpResponse.SendAttachment.cs b/src/Z.Web/System.Web.HttpResponse/HttpResponse.SendAttachment.cs
index 3c743ffd..f5496740 100644
--- a/src/Z.Web/System.Web.HttpResponse/HttpResponse.SendAttachment.cs
+++ b/src/Z.Web/System.Web.HttpResponse/HttpResponse.SendAttachment.cs
@@ -4,10 +4,13 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A HttpResponse extension method that sends an attachment.
///
@@ -22,4 +25,5 @@ public static void SendAttachment(this HttpResponse @this, string fullPathToFile
@this.ContentType = "";
@this.End();
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.HttpResponse/HttpResponse.SetStatus.cs b/src/Z.Web/System.Web.HttpResponse/HttpResponse.SetStatus.cs
index 709defef..88f43754 100644
--- a/src/Z.Web/System.Web.HttpResponse/HttpResponse.SetStatus.cs
+++ b/src/Z.Web/System.Web.HttpResponse/HttpResponse.SetStatus.cs
@@ -4,10 +4,13 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A HttpResponse extension method that sets the status.
///
@@ -63,4 +66,5 @@ public static void SetStatus(this HttpResponse @this, int code, string descripti
@this.End();
}
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusAccepted.cs b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusAccepted.cs
index bbc0563e..d568362d 100644
--- a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusAccepted.cs
+++ b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusAccepted.cs
@@ -4,10 +4,13 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A HttpResponse extension method that sets the response to status code 202 (Accepted.).
///
@@ -17,4 +20,5 @@ public static void SetStatusAccepted(this HttpResponse @this)
@this.StatusCode = 202;
@this.StatusDescription = "Accepted.";
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusClientBrowserDoesNotAcceptMimeType.cs b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusClientBrowserDoesNotAcceptMimeType.cs
index 0baccf1b..7a5ef6b5 100644
--- a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusClientBrowserDoesNotAcceptMimeType.cs
+++ b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusClientBrowserDoesNotAcceptMimeType.cs
@@ -4,10 +4,13 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A HttpResponse extension method that sets the response to status code 406 (Client browser does not accept the
/// MIME type of the requested page.).
@@ -18,4 +21,5 @@ public static void SetStatusClientBrowserDoesNotAcceptMimeType(this HttpResponse
@this.StatusCode = 406;
@this.StatusDescription = "Client browser does not accept the MIME type of the requested page.";
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusContinue.cs b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusContinue.cs
index 75f65117..30ca348f 100644
--- a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusContinue.cs
+++ b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusContinue.cs
@@ -4,10 +4,13 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A HttpResponse extension method that sets the response to status code 100 (Continue.).
///
@@ -17,4 +20,5 @@ public static void SetStatusContinue(this HttpResponse @this)
@this.StatusCode = 100;
@this.StatusDescription = "Continue.";
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusCreated.cs b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusCreated.cs
index a866a9ff..de5b060f 100644
--- a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusCreated.cs
+++ b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusCreated.cs
@@ -4,10 +4,13 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A HttpResponse extension method that sets the response to status code 201 (Created.).
///
@@ -17,4 +20,5 @@ public static void SetStatusCreated(this HttpResponse @this)
@this.StatusCode = 201;
@this.StatusDescription = "Created.";
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusInternalServerError.cs b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusInternalServerError.cs
index d0073040..59a5bfdf 100644
--- a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusInternalServerError.cs
+++ b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusInternalServerError.cs
@@ -4,10 +4,12 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web;
-
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A HttpResponse extension method that sets the response to status code 500 (Internal server error. ).
///
@@ -17,4 +19,5 @@ public static void SetStatusInternalServerError(this HttpResponse @this)
@this.StatusCode = 500;
@this.StatusDescription = "Internal server error. ";
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusInvalidHeaderValueConfiguration.cs b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusInvalidHeaderValueConfiguration.cs
index 890042ea..9ca6a40f 100644
--- a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusInvalidHeaderValueConfiguration.cs
+++ b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusInvalidHeaderValueConfiguration.cs
@@ -4,10 +4,12 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web;
-
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A HttpResponse extension method that sets the response to status code 501 (Header values specify a
/// configuration that is not implemented.).
@@ -18,4 +20,5 @@ public static void SetStatusInvalidHeaderValueConfiguration(this HttpResponse @t
@this.StatusCode = 501;
@this.StatusDescription = "Header values specify a configuration that is not implemented.";
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusInvalidResponseWhileGatewayOrProxy.cs b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusInvalidResponseWhileGatewayOrProxy.cs
index 99418fe7..7fcec863 100644
--- a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusInvalidResponseWhileGatewayOrProxy.cs
+++ b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusInvalidResponseWhileGatewayOrProxy.cs
@@ -4,10 +4,12 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web;
-
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A HttpResponse extension method that sets the response to status code 502 (Web server received an invalid
/// response while acting as a gateway or proxy. ).
@@ -18,4 +20,5 @@ public static void SetStatusInvalidResponseWhileGatewayOrProxy(this HttpResponse
@this.StatusCode = 502;
@this.StatusDescription = "Web server received an invalid response while acting as a gateway or proxy. ";
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusMethodNotAllowed.cs b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusMethodNotAllowed.cs
index 7eeeffe7..7c9be5c0 100644
--- a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusMethodNotAllowed.cs
+++ b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusMethodNotAllowed.cs
@@ -4,10 +4,13 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A HttpResponse extension method that sets the response to status code 405 (Method Not Allowed.).
///
@@ -17,4 +20,5 @@ public static void SetStatusMethodNotAllowed(this HttpResponse @this)
@this.StatusCode = 405;
@this.StatusDescription = "Method Not Allowed.";
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusMovedPermanently.cs b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusMovedPermanently.cs
index 6fd93acf..a493db8e 100644
--- a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusMovedPermanently.cs
+++ b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusMovedPermanently.cs
@@ -4,10 +4,12 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web;
-
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A HttpResponse extension method that sets the response to status code 301 (Moved permanently.).
///
@@ -17,4 +19,5 @@ public static void SetStatusMovedPermanently(this HttpResponse @this)
@this.StatusCode = 301;
@this.StatusDescription = "Moved permanently.";
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusNoContent.cs b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusNoContent.cs
index 1fccf595..5165d64e 100644
--- a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusNoContent.cs
+++ b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusNoContent.cs
@@ -4,10 +4,13 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A HttpResponse extension method that sets the response to status code 204 (No content.).
///
@@ -17,4 +20,5 @@ public static void SetStatusNoContent(this HttpResponse @this)
@this.StatusCode = 204;
@this.StatusDescription = "No content.";
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusNonauthoritativeInformation.cs b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusNonauthoritativeInformation.cs
index 5a8bb96b..f3d4ba92 100644
--- a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusNonauthoritativeInformation.cs
+++ b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusNonauthoritativeInformation.cs
@@ -4,10 +4,13 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A HttpResponse extension method that sets the response to status code 203 (Nonauthoritative information.).
///
@@ -17,4 +20,5 @@ public static void SetStatusNonauthoritativeInformation(this HttpResponse @this)
@this.StatusCode = 203;
@this.StatusDescription = "Nonauthoritative information.";
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusNotFound.cs b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusNotFound.cs
index 19721dba..f883c4eb 100644
--- a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusNotFound.cs
+++ b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusNotFound.cs
@@ -4,10 +4,12 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web;
-
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A HttpResponse extension method that sets the response to status code 404 (Not found. ).
///
@@ -17,4 +19,5 @@ public static void SetStatusNotFound(this HttpResponse @this)
@this.StatusCode = 404;
@this.StatusDescription = "Not found. ";
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusNotModified.cs b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusNotModified.cs
index ec153a3c..f8efbb58 100644
--- a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusNotModified.cs
+++ b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusNotModified.cs
@@ -4,10 +4,13 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A HttpResponse extension method that sets the response to status code 304 (Not modified.).
///
@@ -17,4 +20,5 @@ public static void SetStatusNotModified(this HttpResponse @this)
@this.StatusCode = 304;
@this.StatusDescription = "Not modified.";
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusObjectMoved.cs b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusObjectMoved.cs
index 02c39677..2894fbc0 100644
--- a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusObjectMoved.cs
+++ b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusObjectMoved.cs
@@ -4,10 +4,13 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A HttpResponse extension method that sets the response to status code 302 (Object moved.).
///
@@ -17,4 +20,5 @@ public static void SetStatusObjectMoved(this HttpResponse @this)
@this.StatusCode = 302;
@this.StatusDescription = "Object moved.";
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusPartialContent.cs b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusPartialContent.cs
index 4c031846..95e7bbc7 100644
--- a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusPartialContent.cs
+++ b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusPartialContent.cs
@@ -4,10 +4,13 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A HttpResponse extension method that sets the response to status code 206 (Partial content.).
///
@@ -17,4 +20,5 @@ public static void SetStatusPartialContent(this HttpResponse @this)
@this.StatusCode = 206;
@this.StatusDescription = "Partial content.";
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusPreconditionFailed.cs b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusPreconditionFailed.cs
index 052ee945..3a0696a1 100644
--- a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusPreconditionFailed.cs
+++ b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusPreconditionFailed.cs
@@ -4,10 +4,13 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A HttpResponse extension method that sets the response to status code 412 (Precondition failed.).
///
@@ -17,4 +20,5 @@ public static void SetStatusPreconditionFailed(this HttpResponse @this)
@this.StatusCode = 412;
@this.StatusDescription = "Precondition failed.";
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusRequestTimedOut.cs b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusRequestTimedOut.cs
index b541725e..bc2691a7 100644
--- a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusRequestTimedOut.cs
+++ b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusRequestTimedOut.cs
@@ -4,10 +4,13 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A HttpResponse extension method that sets the response to status code 408 (Request timed out.).
///
@@ -17,4 +20,5 @@ public static void SetStatusRequestTimedOut(this HttpResponse @this)
@this.StatusCode = 408;
@this.StatusDescription = "Request timed out.";
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusResetContent.cs b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusResetContent.cs
index c79393c0..eb862ebb 100644
--- a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusResetContent.cs
+++ b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusResetContent.cs
@@ -4,10 +4,13 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A HttpResponse extension method that sets the response to status code 205 (Reset content.).
///
@@ -17,4 +20,5 @@ public static void SetStatusResetContent(this HttpResponse @this)
@this.StatusCode = 205;
@this.StatusDescription = "Reset content.";
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusServiceUnavailable.cs b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusServiceUnavailable.cs
index 3afc31c3..66835047 100644
--- a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusServiceUnavailable.cs
+++ b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusServiceUnavailable.cs
@@ -4,10 +4,13 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A HttpResponse extension method that sets the response to status code 503 (Service unavailable. ).
///
@@ -17,4 +20,5 @@ public static void SetStatusServiceUnavailable(this HttpResponse @this)
@this.StatusCode = 503;
@this.StatusDescription = "Service unavailable. ";
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusSwitchingProtocols.cs b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusSwitchingProtocols.cs
index bb735b33..c90875f0 100644
--- a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusSwitchingProtocols.cs
+++ b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusSwitchingProtocols.cs
@@ -4,10 +4,13 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A HttpResponse extension method that sets the response to status code 101 (Switching protocols.).
///
@@ -17,4 +20,5 @@ public static void SetStatusSwitchingProtocols(this HttpResponse @this)
@this.StatusCode = 101;
@this.StatusDescription = "Switching protocols.";
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusTemporaryRedirect.cs b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusTemporaryRedirect.cs
index daa0837b..db92ff6a 100644
--- a/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusTemporaryRedirect.cs
+++ b/src/Z.Web/System.Web.HttpResponse/_generated/HttpResponse.SetStatusTemporaryRedirect.cs
@@ -4,10 +4,13 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A HttpResponse extension method that sets the response to status code 307 (Temporary redirect.).
///
@@ -17,4 +20,5 @@ public static void SetStatusTemporaryRedirect(this HttpResponse @this)
@this.StatusCode = 307;
@this.StatusDescription = "Temporary redirect.";
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.UI.Control/Control.FindControl.cs b/src/Z.Web/System.Web.UI.Control/Control.FindControl.cs
index 265b8b57..f7d08531 100644
--- a/src/Z.Web/System.Web.UI.Control/Control.FindControl.cs
+++ b/src/Z.Web/System.Web.UI.Control/Control.FindControl.cs
@@ -4,10 +4,13 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web.UI;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// Searches the current naming container for a server control with the specified id parameter.
///
@@ -19,4 +22,5 @@ public static T FindControl(this Control @this, string id) where T : class
{
return (@this.FindControl(id) as T);
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Web/System.Web.UI.Control/Control.FindControlRecursive.cs b/src/Z.Web/System.Web.UI.Control/Control.FindControlRecursive.cs
index 0e1883cd..724dd647 100644
--- a/src/Z.Web/System.Web.UI.Control/Control.FindControlRecursive.cs
+++ b/src/Z.Web/System.Web.UI.Control/Control.FindControlRecursive.cs
@@ -4,10 +4,13 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+#if !NETSTANDARD
using System.Web.UI;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// Searches recursively in the container and child container for a server control with the specified id
/// parameter.
@@ -60,4 +63,5 @@ public static T FindControlRecursive(this Control @this, string id) where T :
return rControl as T;
}
+#endif
}
\ No newline at end of file
diff --git a/src/Z.Window.Forms/System.Windows.Forms.Form/Form.ToFullScreen.cs b/src/Z.Window.Forms/System.Windows.Forms.Form/Form.ToFullScreen.cs
index 79b3c48f..2a9c664d 100644
--- a/src/Z.Window.Forms/System.Windows.Forms.Form/Form.ToFullScreen.cs
+++ b/src/Z.Window.Forms/System.Windows.Forms.Form/Form.ToFullScreen.cs
@@ -4,10 +4,14 @@
// License: https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: http://www.zzzprojects.com/
// Copyright © ZZZ Projects Inc. 2014 - 2016. All rights reserved.
+
+#if !NETSTANDARD
using System.Windows.Forms;
+#endif
public static partial class Extensions
{
+#if !NETSTANDARD
///
/// A Form extension method that set the window form to full screen mode to the specified screen.
///
@@ -19,4 +23,5 @@ public static void ToFullScreen(this Form form, int screen = 0)
form.StartPosition = FormStartPosition.Manual;
form.Bounds = Screen.AllScreens[screen].Bounds;
}
-}
\ No newline at end of file
+#endif
+}