Click here to Skip to main content
15,891,708 members
Home / Discussions / C#
   

C#

 
SuggestionRe: want to add a text box on master page Pin
Richard Deeming4-Aug-14 2:19
mveRichard Deeming4-Aug-14 2:19 
AnswerRe: want to add a text box on master page Pin
Sibeesh KV29-Sep-14 19:50
professionalSibeesh KV29-Sep-14 19:50 
QuestionTreeview control with Newick format Pin
Abolfazl Ghavidel1-Aug-14 21:08
Abolfazl Ghavidel1-Aug-14 21:08 
AnswerRe: Treeview control with Newick format Pin
Eddy Vluggen3-Aug-14 1:54
professionalEddy Vluggen3-Aug-14 1:54 
QuestionHow can we create a photo gallery in C# Pin
Member 109104631-Aug-14 7:59
Member 109104631-Aug-14 7:59 
AnswerRe: How can we create a photo gallery in C# Pin
Richard Andrew x641-Aug-14 9:04
professionalRichard Andrew x641-Aug-14 9:04 
AnswerRe: How can we create a photo gallery in C# Pin
wisdom123-Aug-14 1:45
wisdom123-Aug-14 1:45 
AnswerRe: How can we create a photo gallery in C# Pin
Ravi Bhavnani3-Aug-14 9:06
professionalRavi Bhavnani3-Aug-14 9:06 
QuestionHow can i make a DVR Server ? i want to connect to more than one DVR from the Internet using ASP.NET Website. Pin
Aimanzaki1-Aug-14 5:36
Aimanzaki1-Aug-14 5:36 
AnswerRe: How can i make a DVR Server ? i want to connect to more than one DVR from the Internet using ASP.NET Website. Pin
Richard Andrew x641-Aug-14 6:25
professionalRichard Andrew x641-Aug-14 6:25 
QuestionGet smart card certificates on a Windows Mobile 6 application and Compact Framework Pin
Wakonda30-Jul-14 20:47
Wakonda30-Jul-14 20:47 
AnswerRe: Get smart card certificates on a Windows Mobile 6 application and Compact Framework Pin
Wakonda8-Sep-14 2:48
Wakonda8-Sep-14 2:48 
QuestionHow to compare the next/previous items in List in C# using linq Pin
Member 1098134230-Jul-14 6:02
Member 1098134230-Jul-14 6:02 
AnswerRe: How to compare the next/previous items in List in C# using linq Pin
Richard Deeming30-Jul-14 7:11
mveRichard Deeming30-Jul-14 7:11 
AnswerRe: How to compare the next/previous items in List in C# using linq Pin
Member 109862521-Aug-14 8:26
Member 109862521-Aug-14 8:26 
As I interpret the question, you want to get adjacent appointments that are in a list of appointments. The following LINQ query produces an IEnumerable collection that contains List<Appointment> objects:

C#
var appointments = new List<Appointment>();
    
    // Populate the appointment list or construct the appointment list from soem other source.
    appointments.Add(new Appointment{ index = 1, startTime = new DateTime(...), endTime = new DateTime(...) });
    appointments.Add(new Appointment{ index = 2, startTime = new DateTime(...), endTime = new DateTime(...) });
    appointments.Add(new Appointment{ index = 3, startTime = new DateTime(...), endTime = new DateTime(...) });
    ...
    
    // Build a collection of adjacent appointment where the end time of an appointment is equal to the start time of another appointment.
    var adjacentAppointments = from a in appointments
                               from b in appointments
                               where a.endTime == b.startTime
                               select new List<Appointment> { a, b };


The adjacentAppointments will have type of IEnumerable<List<Appointment>>.

modified 4-Aug-14 8:10am.

QuestionExtract text from PDF in C# using Mupdf library Pin
tmiklos6730-Jul-14 1:19
tmiklos6730-Jul-14 1:19 
AnswerRe: Extract text from PDF in C# using Mupdf library Pin
Ravi Bhavnani30-Jul-14 4:31
professionalRavi Bhavnani30-Jul-14 4:31 
GeneralRe: Extract text from PDF in C# using Mupdf library Pin
tmiklos6730-Jul-14 22:32
tmiklos6730-Jul-14 22:32 
QuestionRe: Extract text from PDF in C# using Mupdf library Pin
Richard MacCutchan30-Jul-14 5:14
mveRichard MacCutchan30-Jul-14 5:14 
AnswerRe: Extract text from PDF in C# using Mupdf library Pin
tmiklos6730-Jul-14 22:25
tmiklos6730-Jul-14 22:25 
Questionwant to export to word with text color and logo image in a single doc file through c# windows application Pin
VIVEK KUMAR PAL30-Jul-14 1:14
VIVEK KUMAR PAL30-Jul-14 1:14 
QuestionRe: want to export to word with text color and logo image in a single doc file through c# windows application Pin
ZurdoDev30-Jul-14 2:01
professionalZurdoDev30-Jul-14 2:01 
AnswerRe: want to export to word with text color and logo image in a single doc file through c# windows application Pin
Dave Kreskowiak30-Jul-14 2:55
mveDave Kreskowiak30-Jul-14 2:55 
QuestionMouse event Handling [SOLVED] Pin
V.29-Jul-14 23:18
professionalV.29-Jul-14 23:18 
AnswerRe: Mouse event Handling Pin
OriginalGriff29-Jul-14 23:35
mveOriginalGriff29-Jul-14 23:35 

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.