Click here to Skip to main content
16,005,080 members
Home / Discussions / C#
   

C#

 
GeneralRe: read file from bottom Pin
vineeshV30-Jun-08 22:42
vineeshV30-Jun-08 22:42 
Questionabout tabpage and forms in tabpage!!! Pin
ibrahim yilmaz30-Jun-08 18:24
ibrahim yilmaz30-Jun-08 18:24 
AnswerRe: about tabpage and forms in tabpage!!! Pin
Christian Graus30-Jun-08 19:00
protectorChristian Graus30-Jun-08 19:00 
GeneralRe: about tabpage and forms in tabpage!!! Pin
ibrahim yilmaz1-Jul-08 2:19
ibrahim yilmaz1-Jul-08 2:19 
GeneralRe: about tabpage and forms in tabpage!!! Pin
ibrahim yilmaz1-Jul-08 2:20
ibrahim yilmaz1-Jul-08 2:20 
QuestionDatabinding hyperlink text with static ID Pin
Richard Blythe30-Jun-08 17:27
Richard Blythe30-Jun-08 17:27 
AnswerRe: Databinding hyperlink text with static ID Pin
leppie30-Jun-08 20:57
leppie30-Jun-08 20:57 
QuestionComparing objects of different types Pin
Waleed Eissa30-Jun-08 14:37
Waleed Eissa30-Jun-08 14:37 
In my application I have an array of custom objects that I want to search by one of the properties of the custom object (the ID property which is an int), please see the code below to understand what I'm trying to do:

private CustomObject[] _customObjects;
public CustomObject CustomObjects
{
get
{
if(_customObjects == null)
{
CustomObject[] customObjects = CustomObject.GetCustomObjects();
Array.Sort(customObjects); // CustomObject implements IComparable
_customObjects = customObjects;
}
}

public IsIDInList(int id)
{
// What do I have to do to make this work?
return Array.BinarySearch(CustomObjects, id) >= 0;
}


I could use a dictionary of course but I don't want to for some reasons specific to my application. Any suggestions are highly appreciated...


AnswerRe: Comparing objects of different types Pin
Luc Pattyn30-Jun-08 14:48
sitebuilderLuc Pattyn30-Jun-08 14:48 
GeneralRe: Comparing objects of different types Pin
Waleed Eissa30-Jun-08 21:37
Waleed Eissa30-Jun-08 21:37 
GeneralRe: Comparing objects of different types Pin
Luc Pattyn1-Jul-08 1:22
sitebuilderLuc Pattyn1-Jul-08 1:22 
GeneralRe: Comparing objects of different types Pin
Waleed Eissa1-Jul-08 1:53
Waleed Eissa1-Jul-08 1:53 
GeneralRe: Comparing objects of different types Pin
Luc Pattyn1-Jul-08 2:11
sitebuilderLuc Pattyn1-Jul-08 2:11 
GeneralRe: Comparing objects of different types Pin
Waleed Eissa1-Jul-08 3:18
Waleed Eissa1-Jul-08 3:18 
GeneralRe: Comparing objects of different types Pin
Luc Pattyn1-Jul-08 3:23
sitebuilderLuc Pattyn1-Jul-08 3:23 
GeneralRe: Comparing objects of different types Pin
Waleed Eissa1-Jul-08 16:05
Waleed Eissa1-Jul-08 16:05 
GeneralRe: Comparing objects of different types Pin
Luc Pattyn1-Jul-08 16:20
sitebuilderLuc Pattyn1-Jul-08 16:20 
QuestionDivide an image Pin
gigahertz20530-Jun-08 14:34
gigahertz20530-Jun-08 14:34 
AnswerRe: Divide an image Pin
Christian Graus30-Jun-08 14:53
protectorChristian Graus30-Jun-08 14:53 
GeneralRe: Divide an image Pin
gigahertz20530-Jun-08 15:21
gigahertz20530-Jun-08 15:21 
GeneralRe: Divide an image Pin
Christian Graus30-Jun-08 15:27
protectorChristian Graus30-Jun-08 15:27 
GeneralRe: Divide an image Pin
gigahertz20530-Jun-08 15:35
gigahertz20530-Jun-08 15:35 
GeneralRe: Divide an image Pin
Christian Graus30-Jun-08 15:36
protectorChristian Graus30-Jun-08 15:36 
GeneralRe: Divide an image Pin
gigahertz20530-Jun-08 15:52
gigahertz20530-Jun-08 15:52 
GeneralRe: Divide an image Pin
Christian Graus30-Jun-08 15:54
protectorChristian Graus30-Jun-08 15:54 

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.