Member Avatar

How can I change the signature of my Action delegates to NOT use void methods in my Dictionary<bool, Action<UrlParts, List<UrlParts>>>? public static Func<UrlParts, List<UrlParts>, bool> LacksDomainPage = (up, lup) => !lup.Contains(up); public static Action<UrlParts, List<UrlParts>> LacksUrl = (up, lup) => dicAddDomainPage[LacksDomainPage(up, lup)](up, lup); public static Dictionary<bool, Action<UrlParts, List<UrlParts>>> dicAddDomainPage = new Dictionary<bool, Action<UrlParts, List<UrlParts>>>() { { true, AddDomainPage }, { false, AddNothing }, }; using public static Action<UrlParts, List<UrlParts>> AddDomainPage = (up, ldp) => ldp.Add(up); public static Action<UrlParts, List<UrlParts>> AddNothing = (up, ldp) => { }; instead of public static void AddDomainPage(UrlParts up, List<UrlParts> ldp) { ldp.Add(up); } public static …

Member Avatar
+0 forum 11
Member Avatar

Thank you in advance. I believe the items below should give a whole view. .Net 4.5.1 / x86 When using a SqlAdapter with new SqlParameter() { SqlDbType = SqlDbType.DateTime, ParameterName = "@FromDate", Value = "09/01/2008" }, I get the error "Conversion failed when converting date and/or time from character string" at the SqlAdapter.Fill method. After trying every date format I could find, specifying the CommandType and DataType, I still get the above error. If I replace the ParameterName with that date in the CommandText and add no SqlParameters, the SqlAdapter returns the expected records. What am I missing? public SqlConnection …

Member Avatar
+0 forum 1

The End.