static ClientInfoGrid() { DicValidation.Add(new KeyValuePair <string, Func <object, string> >(StaticReflection.GetMemberName <ClientInfoGrid>(x => x.ClientInfo.FirstName), value => GenericValidator.ValidateEmptyAndLength(value, 2, 100))); DicValidation.Add(new KeyValuePair <string, Func <object, string> >(StaticReflection.GetMemberName <ClientInfoGrid>(x => x.ClientInfo.LastName), value => GenericValidator.ValidateEmptyAndLength(value, 2, 200))); DicValidation.Add(new KeyValuePair <string, Func <object, string> >(StaticReflection.GetMemberName <ClientInfoGrid>(x => x.ClientInfo.LoyaltyCode), value => GenericValidator.ValidateLength(value, 5, 14))); }