dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: .Net Fan

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    828

    Re: Timer or Watcher for function result

    You can do it in Threads. Create a void parameterless method



    private void MyFunction()
    {

    while (yourValueIsNotGood)
    {
    ...
  2. Re: DataTable with mixed datatypes in same column

    Store a string in "Department" column, and cast it to the appropriate enum when reading data from DataTable.

    EnumType enumValue = (EnumType)Enum.Parse(typeof(EnumType), stringValue, true);
  3. Replies
    1
    Views
    1,768

    Re: Regex.IsMatch is not working

    Correct is this way :

    Regex.IsMatch("abc1234", "^[a-zA-Z]{3}[0-9]{4}$").ToString();

    The first parameter is input, and the second parameter is pattern.
  4. Re: How to make search between two dates accept null not obligatatory search

    try that :

    if(!String.IsNullOrEmpty(StartDate))
    {
    cmd.Parameters["@StartDate"].Value = StartDate;
    }

    if(!String.IsNullOrEmpty(EndDate))
    {
    cmd.Parameters["@EndDate"].Value = EndDate;
  5. Replies
    1
    Views
    1,334

    Re: C# interview question

    used .NET 4.5

    var myDictionary = new List<string>{ "Star", "Burst", "Something", "Other"};
    var myWord = "StarBurst";
    var containingWords = myDictionary.Where(w => myWord.Contains(w)).ToList();
  6. Sticky: Poll: Re: WHEN YOU POST, PLEASE SAY WHAT VERSION OF .NET YOU USE (Read this before posting!

    Voted for .NET4.0 / VS 2010, but it seems to be time to add .NET4.5 / VS 2013
Results 1 to 6 of 6


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)