diff --git a/src/Code.Library.Docs/Code.Library.Docs.csproj b/src/Code.Library.Docs/Code.Library.Docs.csproj
index a7efdc1..8e65ec7 100644
--- a/src/Code.Library.Docs/Code.Library.Docs.csproj
+++ b/src/Code.Library.Docs/Code.Library.Docs.csproj
@@ -6,6 +6,14 @@
ebc77ad9-f058-478c-9e78-1b5ba77bd814
+
+
+
+
+
+
+
+
diff --git a/src/Code.Library.Tests/Code.Library.Tests.csproj b/src/Code.Library.Tests/Code.Library.Tests.csproj
index 4b1b2fe..5e0fc0b 100644
--- a/src/Code.Library.Tests/Code.Library.Tests.csproj
+++ b/src/Code.Library.Tests/Code.Library.Tests.csproj
@@ -6,6 +6,14 @@
false
+
+
+
+
+
+
+
+
diff --git a/src/Code.Library/Code.Library.csproj b/src/Code.Library/Code.Library.csproj
index 750c03e..76f5662 100644
--- a/src/Code.Library/Code.Library.csproj
+++ b/src/Code.Library/Code.Library.csproj
@@ -2,21 +2,21 @@
netstandard2.0;net45
- 2.0.0-beta.3
+ 2.0.0-beta.4
abhith
Some useful C# helper classes and methods.
- https://github.com/Abhith/Code.Library
+ https://code-library.abhith.net
https://github.com/Abhith/Code.Library
true
- Code.Library.ruleset
+
- Code.Library.ruleset
+
diff --git a/src/Code.Library/Helpers/ControlsHelper.cs b/src/Code.Library/Helpers/ControlsHelper.cs
deleted file mode 100644
index 316de89..0000000
--- a/src/Code.Library/Helpers/ControlsHelper.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-using System.Web.UI.WebControls;
-
-namespace Code.Library
-{
- public static class ControlsHelper
- {
- ///
- /// check/uncheck checkbox
- ///
- ///
- ///
- public static void ToggleCheckbox(CheckBox checkBox, bool? isChecked)
- {
- if (isChecked != null) checkBox.Checked = (bool)isChecked;
- }
-
- ///
- /// Select drop down item by value
- ///
- ///
- ///
- public static void SelectDropDownValue(DropDownList dropDownList, string value)
- {
- if (string.IsNullOrEmpty(value))
- {
- return;
- }
-
- var item = dropDownList.Items.FindByValue(value);
-
- if (item != null)
- {
- dropDownList.SelectedValue = value;
- }
- }
- }
-}
\ No newline at end of file
diff --git a/src/Code.Library/Helpers/ExceptionHelper.cs b/src/Code.Library/Helpers/ExceptionHelper.cs
deleted file mode 100644
index 673d353..0000000
--- a/src/Code.Library/Helpers/ExceptionHelper.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-using System;
-using System.Web;
-
-namespace Code.Library
-{
- public static class ExceptionHelper
- {
- ///
- /// Log exception to the response
- /// Author : Abhith
- /// Date : 14 July 2015
- /// Reference : Sysberries
- ///
- ///
- ///
- public static void LogException(Exception ex, string page)
- {
- HttpContext.Current.Response.Write(ex + " : " + page);
- }
- }
-}
diff --git a/src/Code.Library/Models/Result.cs b/src/Code.Library/Models/Result.cs
index 34234fd..6556c7f 100644
--- a/src/Code.Library/Models/Result.cs
+++ b/src/Code.Library/Models/Result.cs
@@ -164,7 +164,7 @@ public T Value
get
{
if (!IsSuccess)
- throw new InvalidOperationException("There is no value for failure.");
+ return default(T);
return _value;
}
@@ -238,7 +238,7 @@ public TValue Value
get
{
if (!IsSuccess)
- throw new InvalidOperationException("There is no value for failure.");
+ return default(TValue);
return _value;
}
@@ -334,7 +334,7 @@ public TError Error
get
{
if (IsSuccess)
- throw new InvalidOperationException("There is no error message for success.");
+ return default(TError);
return _error;
}