Click here to Skip to main content
15,867,453 members
Home / Discussions / C#
   

C#

 
GeneralRe: Creating a Windows form program using C# 8.0 Pin
Brian_TheLion24-Aug-20 16:57
Brian_TheLion24-Aug-20 16:57 
AnswerRe: Creating a Windows form program using C# 8.0 Pin
Richard Deeming23-Aug-20 23:11
mveRichard Deeming23-Aug-20 23:11 
GeneralRe: Creating a Windows form program using C# 8.0 Pin
Brian_TheLion24-Aug-20 17:01
Brian_TheLion24-Aug-20 17:01 
Question{Solved} Find and count duplicates in a list Pin
Acuena20-Aug-20 2:51
Acuena20-Aug-20 2:51 
AnswerRe: Find and count duplicates in a list Pin
OriginalGriff20-Aug-20 3:38
mveOriginalGriff20-Aug-20 3:38 
GeneralRe: Find and count duplicates in a list Pin
Acuena24-Aug-20 4:16
Acuena24-Aug-20 4:16 
GeneralRe: Find and count duplicates in a list Pin
OriginalGriff24-Aug-20 4:24
mveOriginalGriff24-Aug-20 4:24 
GeneralRe: Find and count duplicates in a list Pin
Acuena24-Aug-20 5:07
Acuena24-Aug-20 5:07 
I have never used LinQ, and as such I am a bit unsure what GroupBy returns and what type x is.

And about the ToString, I was just testing, all (or many) does...

Here is the whole code I have, if anyone is interested:

using System;
using System.Collections.Generic;
using System.Windows;
using System.IO;
using System.Linq;

namespace Inventory
{
	/// <summary>
	/// Interaction logic for Window1.xaml
	/// </summary>
	public partial class Window1 : Window
	{
		void button1_Click(object sender, RoutedEventArgs e)
		{
			
			string[] lines = File.ReadAllLines(@"C:\Users\sdadmin\Desktop\Test data.txt");
			var barcodes = lines.Select(line => {string[] parts = line.Split(',');
			                            	return parts[2]; });
			var x = barcodes.GroupBy(b => b);		
		}
		
		public class List
		{
			public string Date{get; set;}
			public string Time{get; set;}
			public string EAN {get; set;}
		}
	}
}

I am pretty new to C#, I have only been at it for about 1 month or so, if I disregard time when I don't do any programming...
Have a nice day!

GeneralRe: Find and count duplicates in a list Pin
OriginalGriff24-Aug-20 5:39
mveOriginalGriff24-Aug-20 5:39 
GeneralRe: Find and count duplicates in a list Pin
Acuena25-Aug-20 4:13
Acuena25-Aug-20 4:13 
GeneralRe: Find and count duplicates in a list Pin
OriginalGriff25-Aug-20 4:43
mveOriginalGriff25-Aug-20 4:43 
AnswerRe: Find and count duplicates in a list Pin
Afzaal Ahmad Zeeshan20-Aug-20 4:37
professionalAfzaal Ahmad Zeeshan20-Aug-20 4:37 
AnswerRe: Find and count duplicates in a list Pin
BillWoodruff22-Aug-20 21:58
professionalBillWoodruff22-Aug-20 21:58 
QuestionPowerApps and C# Pin
Member 1127440117-Aug-20 6:08
Member 1127440117-Aug-20 6:08 
AnswerRe: PowerApps and C# Pin
Dave Kreskowiak17-Aug-20 7:42
mveDave Kreskowiak17-Aug-20 7:42 
QuestionBinding picture box with column with oracle Pin
mohammed alherwi14-Aug-20 23:26
mohammed alherwi14-Aug-20 23:26 
AnswerRe: Binding picture box with column with oracle Pin
Eddy Vluggen22-Aug-20 10:11
professionalEddy Vluggen22-Aug-20 10:11 
QuestionHow to Read and Write to RFID(v9t557) as Human Interface Device C# Pin
Member 1177073713-Aug-20 14:10
Member 1177073713-Aug-20 14:10 
AnswerRe: How to Read and Write to RFID(v9t557) as Human Interface Device C# Pin
Dave Kreskowiak13-Aug-20 16:28
mveDave Kreskowiak13-Aug-20 16:28 
GeneralRe: How to Read and Write to RFID(v9t557) as Human Interface Device C# Pin
Member 1177073714-Aug-20 12:40
Member 1177073714-Aug-20 12:40 
GeneralRe: How to Read and Write to RFID(v9t557) as Human Interface Device C# Pin
Dave Kreskowiak14-Aug-20 13:16
mveDave Kreskowiak14-Aug-20 13:16 
GeneralRe: How to Read and Write to RFID(v9t557) as Human Interface Device C# Pin
Member 1177073714-Aug-20 13:28
Member 1177073714-Aug-20 13:28 
GeneralRe: How to Read and Write to RFID(v9t557) as Human Interface Device C# Pin
Dave Kreskowiak14-Aug-20 17:26
mveDave Kreskowiak14-Aug-20 17:26 
GeneralRe: How to Read and Write to RFID(v9t557) as Human Interface Device C# Pin
Member 1177073714-Aug-20 20:18
Member 1177073714-Aug-20 20:18 
GeneralRe: How to Read and Write to RFID(v9t557) as Human Interface Device C# Pin
Dave Kreskowiak15-Aug-20 4:03
mveDave Kreskowiak15-Aug-20 4:03 

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.