Click here to Skip to main content
15,936,119 members
Home / Discussions / C#
   

C#

 
AnswerRe: hi peoples... Pin
Pete O'Hanlon1-Jun-09 4:23
mvePete O'Hanlon1-Jun-09 4:23 
Questionabout PowerCollections and C5 library Pin
Seraph_summer31-May-09 22:27
Seraph_summer31-May-09 22:27 
AnswerRe: about PowerCollections and C5 library Pin
Simon P Stevens31-May-09 22:45
Simon P Stevens31-May-09 22:45 
QuestionAuto-resize C# Datagridview Pin
Mbulelo31-May-09 22:20
Mbulelo31-May-09 22:20 
AnswerRe: Auto-resize C# Datagridview Pin
Satish Pai31-May-09 22:24
Satish Pai31-May-09 22:24 
AnswerRe: Auto-resize C# Datagridview Pin
alien viper31-May-09 22:54
alien viper31-May-09 22:54 
QuestionHow to implement observableCollection.Exist() method? Pin
Kunal Chowdhury «IN»31-May-09 21:32
professionalKunal Chowdhury «IN»31-May-09 21:32 
AnswerRe: How to implement observableCollection.Exist() method? Pin
Pete O'Hanlon31-May-09 22:16
mvePete O'Hanlon31-May-09 22:16 
For simple types you could always use this as an extension method:
public static bool Exists<T>(this ObservableCollection<T> collection, T value)
{
  var list = (from p in collection
             where p.ToString() == value.ToString()
             select true).FirstOrDefault();
  return list;
}
This isn't guaranteed to work with complex types due to its reliance on the ToString operations.

"WPF has many lovers. It's a veritable porn star!" - Josh Smith

As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.


My blog | My articles | MoXAML PowerToys | Onyx



QuestionRe: How to implement observableCollection.Exist() method? Pin
Kunal Chowdhury «IN»31-May-09 22:32
professionalKunal Chowdhury «IN»31-May-09 22:32 
AnswerRe: How to implement observableCollection.Exist() method? Pin
Simon P Stevens31-May-09 22:38
Simon P Stevens31-May-09 22:38 
GeneralRe: How to implement observableCollection.Exist() method? Pin
Kunal Chowdhury «IN»31-May-09 23:53
professionalKunal Chowdhury «IN»31-May-09 23:53 
QuestionProblem with MdiParent-MdiChildren forms Pin
Nine_31-May-09 20:38
Nine_31-May-09 20:38 
AnswerRe: Problem with MdiParent-MdiChildren forms Pin
dan!sh 31-May-09 21:08
professional dan!sh 31-May-09 21:08 
GeneralRe: Problem with MdiParent-MdiChildren forms Pin
Nine_31-May-09 21:12
Nine_31-May-09 21:12 
GeneralRe: Problem with MdiParent-MdiChildren forms Pin
dan!sh 31-May-09 21:23
professional dan!sh 31-May-09 21:23 
GeneralRe: Problem with MdiParent-MdiChildren forms Pin
Nine_31-May-09 21:29
Nine_31-May-09 21:29 
QuestionHow to delete the URL from cache entry in c#? Pin
svt gdwl31-May-09 20:31
svt gdwl31-May-09 20:31 
QuestionDataGridView Pin
Yathish hatter31-May-09 20:19
Yathish hatter31-May-09 20:19 
AnswerRe: DataGridView Pin
Satish Pai31-May-09 20:29
Satish Pai31-May-09 20:29 
GeneralRe: DataGridView Pin
Yathish hatter1-Jun-09 18:43
Yathish hatter1-Jun-09 18:43 
Questionfacing problem with C# ODP.Net API(Oracle.DataAccess.dll) "Open cursors exceeded" exception is occured Pin
member12345631-May-09 19:33
member12345631-May-09 19:33 
QuestionTCP Server Question *IMPORTANT* Pin
Serpendiem31-May-09 18:30
Serpendiem31-May-09 18:30 
AnswerRe: TCP Server Question *IMPORTANT* Pin
Jimmanuel1-Jun-09 2:45
Jimmanuel1-Jun-09 2:45 
Question[SOLVED] Future or past date time Pin
CodingLover31-May-09 18:02
CodingLover31-May-09 18:02 
AnswerRe: Future or past date time Pin
CodingLover31-May-09 18:05
CodingLover31-May-09 18:05 

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.