The method ConvertTo<T>(this object value, T defaultValue, bool ignoreException) does not check if value is null

Please correct me if I'm wrong but the below method should check if value is null and if so return the defaultValue, exactly as in the other overload method ConvertTo<T>(this object value, T defaul...

Id #8065 | Release: None | Updated: Feb 24, 2016 at 12:10 AM by valgen | Created: Feb 24, 2016 at 12:10 AM by valgen

ArrayExtensions.IsNullOrEmpty bug when null array

ArrayExtensions.cs class has a bug in its IsNullOrEmpty method: public static bool IsNullOrEmpty(this Array source) { return source != null ? source.Length <= 0 : false; } Whe the array passed...

Id #7860 | Release: None | Updated: Jul 5, 2015 at 1:30 PM by cgessler | Created: Jul 24, 2014 at 6:20 PM by davidolivanubieto

Questionable DataRowExtensions behavior

Let's have a look at one of the extension methods: public static int GetInt32(this DataRow row, string field, int defaultValue) { var value = row[field]; return (value is int ? (int) value ...

Id #7457 | Release: None | Updated: May 23, 2013 at 9:39 PM by ruslancanada | Created: May 23, 2013 at 9:35 PM by ruslancanada

Implement ExtensionMethodSettings to allow user to specify Culture and Encoding

Id #6963 | Release: None | Updated: May 26, 2012 at 2:59 PM by PatrickLorenz | Created: May 23, 2012 at 2:28 PM by jtolar

Review current extension methods and merge personal library

I need to review the current library and find ext. methods I have in my personal library that are not currently in this lib.

Id #6962 | Release: None | Updated: Jun 14, 2013 at 7:26 AM by jtolar | Created: May 23, 2012 at 2:23 PM by jtolar

Wrong xml doc file in NuGet package

The NuGet package for PGK.Extensions contains the xml doc file for PGK.Extensions.Entity. Could you please fix that?

Id #6944 | Release: None | Updated: Feb 21, 2013 at 11:19 PM by Overlord123 | Created: May 12, 2012 at 12:12 PM by Overlord123

GetOriginalException reproduces .NET GetBaseException

The GetOriginalException extension method for System.Exception appears to reproduce the GetBaseException method from .NET (http://msdn.microsoft.com/en-us/library/system.exception.getbaseexception....

Id #6672 | Release: None | Updated: Jun 14, 2013 at 7:26 AM by nathankoop | Created: Dec 12, 2011 at 12:18 AM by ConcreteGannet

ToPlural

I noticed a bug in string.ToPlural(). It will pluralize any word ending in "y" with "ies". But that only the case if the letter before the "Y" is a consonants. If the 2nd to last letter is a vo...

Id #6589 | Release: None | Updated: Jun 14, 2013 at 7:26 AM by akronite | Created: Nov 4, 2011 at 8:56 PM by JamesCurran

Add event.Raise extensions

Checking for null in events every time sucks. It'd be nice if there would be extensions (simple and supporting generic event args) to make event invocation easier.   Example of what I'm talking abo...

Id #6180 | Release: None | Updated: Feb 21, 2013 at 11:19 PM by jceddy | Created: Jun 4, 2011 at 3:43 AM by Ornus

For the next release, include PGK.Extensions.RhinoMocks in the package(s).

A New library has been added on may 31st 2011.  We would have to include this on into the next package(s). PGK.Extensions.RhinoMocks   It extends Rhino.Mocks 3.6.   NOTE: Do not forget the documen...

Id #6172 | Release: None | Updated: Feb 21, 2013 at 11:19 PM by jesuissur | Created: May 31, 2011 at 7:02 PM by jesuissur