Sign up to connect with srider1969 and gain access to their complete profile
  • Member Avatar
    srider1969

    Replied To a Post in Dictionary<bool, Action> using void methods

    I am failing to see how I have NOT clearly demonstrated I know what an Action delegate is. Or how ANY of my POSTED code requires the need for a …
  • Member Avatar
    srider1969

    Replied To a Post in regular expression does not match

    The third one works.
  • Member Avatar
    srider1969

    Replied To a Post in regular expression does not match

    A quick check against the Java engine in RegexBuddy shows my first re named grouping is different somehow. Favorite language/favorite tool!
  • Member Avatar
    srider1969

    Replied To a Post in regular expression does not match

    Or (?<=\()((?:,?)[\w\s\.]+){3}(?=\)) to target all items between the parentheses.
  • Member Avatar
    srider1969

    Began Watching regular expression does not match

    Hi, i have a string that i want to match to a regular expression. The string is methodName(paraT1 para1, paraT2.name2 para2, paraT3.name3 para3) Inside the () there can be multiple …
  • Member Avatar
    srider1969

    Replied To a Post in regular expression does not match

    Your first question leads to named groups. To capture something specific it is easier to give it a name. \w+\((?<first>[\w\s\.])+,(?<second>[\w\s\.])+,(?<third>[\w\s\.])+\) Your second question could be reduced to ,?[\w\s\.]+ . What …
  • Member Avatar
    srider1969

    Replied To a Post in Dictionary<bool, Action> using void methods

    For the constructor at the class scope. My fourth post help me discover that the properties worked fine as well as the class level Action to void constructor and the …
  • Member Avatar
    srider1969

    Replied To a Post in Dictionary<bool, Action> using void methods

    That is at the heart of the question. The collection initializer (for Generics or just the Dictionary?) only accepts void at runtime when Action is specified.
  • Member Avatar
    srider1969

    Replied To a Post in Dictionary<bool, Action> using void methods

    Why would a Dictionary of string to Action's collection initializer require a void method at class scope? Testing the above showed that dsa3 will throw a NullReferenceException on the Action …
  • Member Avatar
    srider1969

    Replied To a Post in Dictionary<bool, Action> using void methods

    I've been looking at the problem and stumbled my way to: private static Dictionary<string, Action> dsa1 { get { return new Dictionary<string, Action>() { { "one", dsa1TestOne } }; } …
  • Member Avatar
    srider1969

    Replied To a Post in Dictionary<bool, Action> using void methods

    Here is another example of what I am asking. public static Dictionary<string, Action> Testing = new Dictionary<string, Action>() { { "one", TestOne }, { "two", TestTwo }, }; static void …
  • Member Avatar
    srider1969

    Replied To a Post in Dictionary<bool, Action> using void methods

    Thanks for your reply. Since the program isn't returning anything, I am unsure how I would use Func. Could you elaborate?
  • Member Avatar
    srider1969

    Edited Dictionary<bool, Action> using void methods

    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) => …
  • Member Avatar
    srider1969

    Created Dictionary<bool, Action> using void methods

    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) => …
  • Member Avatar
    srider1969

    Began Watching Dictionary<bool, Action> using void methods

    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) => …
  • Member Avatar
    srider1969

    Marked Solved Status for SqlAdapter / SqlParameter Conversion failed when converting date

    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 …
  • Member Avatar
    srider1969

    Replied To a Post in SqlAdapter / SqlParameter Conversion failed when converting date

    The problem ended up being a combination of the query and data format.
  • Member Avatar
    srider1969

    Created SqlAdapter / SqlParameter Conversion failed when converting date

    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 …
  • Member Avatar
    srider1969

    Began Watching SqlAdapter / SqlParameter Conversion failed when converting date

    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 …

The End.