Skip to content

Commit 31d44d8

Browse files
Update ExtensionMethods.cs
1 parent c67e4b7 commit 31d44d8

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

class/ExtensionMethods.cs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,5 +174,27 @@ public static List<string> AddList(this List<string> CurrentList, List<string> N
174174

175175
return CurrentList;
176176
}
177+
178+
public static bool IsNullOrTrue(this bool? Value)
179+
{
180+
if (Value == null)
181+
return true;
182+
183+
if (Value == true)
184+
return true;
185+
186+
return false;
187+
}
188+
189+
public static bool IsNullOrFalse(this bool? Value)
190+
{
191+
if (Value == null)
192+
return true;
193+
194+
if (Value == false)
195+
return true;
196+
197+
return false;
198+
}
177199
}
178200
}

0 commit comments

Comments
 (0)