Click here to Skip to main content
15,902,189 members
Home / Discussions / C#
   

C#

 
GeneralRe: installer for window form application c# 4.0,2010 Pin
Member 1026351913-Nov-13 0:51
Member 1026351913-Nov-13 0:51 
QuestionPLEASE HELP ME CONVERT C++ TO PYTHON Pin
ege yay10-Nov-13 7:58
ege yay10-Nov-13 7:58 
AnswerRe: PLEASE HELP ME CONVERT C++ TO PYTHON Pin
Dave Kreskowiak10-Nov-13 10:32
mveDave Kreskowiak10-Nov-13 10:32 
GeneralRe: PLEASE HELP ME CONVERT C++ TO PYTHON Pin
BlackHat Umbrella10-Nov-13 19:24
professionalBlackHat Umbrella10-Nov-13 19:24 
AnswerRe: PLEASE HELP ME CONVERT C++ TO PYTHON Pin
Pete O'Hanlon10-Nov-13 10:38
mvePete O'Hanlon10-Nov-13 10:38 
AnswerRe: PLEASE HELP ME CONVERT C++ TO PYTHON Pin
Abhinav S10-Nov-13 16:59
Abhinav S10-Nov-13 16:59 
AnswerRe: PLEASE HELP ME CONVERT C++ TO PYTHON Pin
thatraja10-Nov-13 20:00
professionalthatraja10-Nov-13 20:00 
Questionfind total year without intersection in c# Pin
Member 1038120910-Nov-13 4:11
Member 1038120910-Nov-13 4:11 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication2
{
    class Program
    {
        static void Main(string[] args)
        {

            List<DateTime> dtArray1 = new List<DateTime>();
            List<DateTime> dtArray2 = new List<DateTime>();


            Console.WriteLine("START Enter date");

            for (int i = 0; i <= 2; i++)
            {
                string sStartdate1 = string.Empty;
                sStartdate1 = Console.ReadLine();


                DateTime dStartDate1;
                if (DateTime.TryParse(sStartdate1, out dStartDate1))
                {
                    dtArray1.Add(dStartDate1);
                }
            }

            foreach (var item in dtArray1)
            {
                Console.WriteLine(item);
            }

            Console.ReadLine();


            Console.WriteLine("end Enter date");

            for (int j = 0; j <= 2; j++)
            {
                string sStartdate2 = string.Empty;
                sStartdate2 = Console.ReadLine();


                DateTime dStartDate2;
                if (DateTime.TryParse(sStartdate2, out dStartDate2))
                {
                    dtArray2.Add(dStartDate2);
                }
            }

            foreach (var item in dtArray2)
            {
                Console.WriteLine(item);
            }

            Console.ReadLine();



           
        }

        }
    }


/*here i enter array yes? know i want compare this array like this    1990|---------|2000
             here 1990,1995 is dtArray1,2000,20005 dtArray2                 1995|-------|2005
                                                                            1995|-------|2005

 my result should be 2000-1990+2005-2000= 15  my year without intersection is 15.*/

AnswerRe: find total year without intersection in c# Pin
Dave Kreskowiak10-Nov-13 10:33
mveDave Kreskowiak10-Nov-13 10:33 
Questionc# Pin
Member 1038120910-Nov-13 0:49
Member 1038120910-Nov-13 0:49 
AnswerRe: c# Pin
Abhinav S10-Nov-13 1:39
Abhinav S10-Nov-13 1:39 
GeneralRe: c# Pin
Member 1038120910-Nov-13 1:51
Member 1038120910-Nov-13 1:51 
AnswerRe: c# Pin
Abhinav S10-Nov-13 1:58
Abhinav S10-Nov-13 1:58 
AnswerRe: c# Pin
BillWoodruff10-Nov-13 2:37
professionalBillWoodruff10-Nov-13 2:37 
AnswerRe: c# Pin
Richard Deeming11-Nov-13 1:33
mveRichard Deeming11-Nov-13 1:33 
QuestionSave displayed text from Web Page in C# Pin
triXerr9-Nov-13 23:27
triXerr9-Nov-13 23:27 
AnswerRe: Save displayed text from Web Page in C# Pin
Abhinav S10-Nov-13 1:46
Abhinav S10-Nov-13 1:46 
GeneralRe: Save displayed text from Web Page in C# Pin
triXerr10-Nov-13 3:45
triXerr10-Nov-13 3:45 
Questiongenerates codes in 3 tier(3layer ) for application and web using c# Pin
Rahim Lotfi9-Nov-13 3:30
Rahim Lotfi9-Nov-13 3:30 
AnswerRe: generates codes in 3 tier(3layer ) for application and web using c# Pin
Richard MacCutchan9-Nov-13 4:04
mveRichard MacCutchan9-Nov-13 4:04 
AnswerRe: generates codes in 3 tier(3layer ) for application and web using c# Pin
Mycroft Holmes9-Nov-13 14:47
professionalMycroft Holmes9-Nov-13 14:47 
Questionc# Pin
Member 103899378-Nov-13 19:38
Member 103899378-Nov-13 19:38 
AnswerRe: c# Pin
Mycroft Holmes8-Nov-13 20:09
professionalMycroft Holmes8-Nov-13 20:09 
JokeRe: c# Pin
Richard MacCutchan8-Nov-13 23:04
mveRichard MacCutchan8-Nov-13 23:04 
GeneralRe: c# Pin
Mycroft Holmes8-Nov-13 23:19
professionalMycroft Holmes8-Nov-13 23:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.