Thursday, January 1, 2015

C# check any type null

You can use this to check null

 public static bool CheckNullOrEmpty<T>(T value)  
    if (typeof(T) == typeof(string))  
     return string.IsNullOrEmpty(value as string);  
    return value == null || value.Equals(default(T));  

vfpoledeb.1 provider is not registered on the local machine

Have u Install VFP Ole DB Provider in your System ? If No then Please Install it from following link.