Click here to Skip to main content
15,897,519 members
Home / Discussions / C#
   

C#

 
AnswerRe: HowTo make a dll, which can be called by VBA Pin
bearfx25-Oct-06 8:35
bearfx25-Oct-06 8:35 
QuestionArray List Pin
iamnew2C#25-Oct-06 6:15
iamnew2C#25-Oct-06 6:15 
QuestionMS Web Browser control Pin
CoolASL25-Oct-06 5:42
CoolASL25-Oct-06 5:42 
AnswerRe: MS Web Browser control Pin
Judah Gabriel Himango25-Oct-06 5:48
sponsorJudah Gabriel Himango25-Oct-06 5:48 
GeneralRe: MS Web Browser control Pin
CoolASL25-Oct-06 6:13
CoolASL25-Oct-06 6:13 
AnswerRe: MS Web Browser control Pin
Martin2325-Oct-06 6:15
Martin2325-Oct-06 6:15 
QuestionLINQ (C# 3.0) Pin
Alvaro Mendez25-Oct-06 5:02
Alvaro Mendez25-Oct-06 5:02 
AnswerRe: LINQ (C# 3.0) Pin
Judah Gabriel Himango25-Oct-06 5:31
sponsorJudah Gabriel Himango25-Oct-06 5:31 
Hi Alvaro. I haven't used LINQ too much, but I understand the Where method takes a Predicate<Customer>. All you're doing is writing a lambda expression, kind of shorthand for an anonymous method. Here's a more verbose version that should work, assuming Where takes a predicate:

var q = dc.Customer.Where(Criteria);

...

bool Criteria(Customer input)
{
   return input.City == "New York" || (westCoast && input.City == "Los Angeles");
}


I'm not sure, but you may be able to do this right inside the lambda:

var q = dc.Customer.Where(c => c.City == "New York" || (westCoast && c.City == "Los Angeles"));


Tech, life, family, faith: Give me a visit.
I'm currently blogging about: God-as-Judge, God-as-Forgiver
The apostle Paul, modernly speaking: Epistles of Paul

Judah Himango


GeneralRe: LINQ (C# 3.0) Pin
Alvaro Mendez25-Oct-06 6:21
Alvaro Mendez25-Oct-06 6:21 
GeneralRe: LINQ (C# 3.0) Pin
Judah Gabriel Himango25-Oct-06 17:06
sponsorJudah Gabriel Himango25-Oct-06 17:06 
QuestionExcel and Windows Services Pin
gantww25-Oct-06 4:50
gantww25-Oct-06 4:50 
AnswerRe: Excel and Windows Services Pin
seee sharp25-Oct-06 21:48
seee sharp25-Oct-06 21:48 
Questionhow to change values of Crystal Reports in vc# 2005? Pin
hdv21225-Oct-06 4:42
hdv21225-Oct-06 4:42 
AnswerRe: how to change values of Crystal Reports in vc# 2005? Pin
bearfx25-Oct-06 8:28
bearfx25-Oct-06 8:28 
QuestionFooter in Datagridview Pin
hekim1325-Oct-06 4:29
hekim1325-Oct-06 4:29 
AnswerRe: Footer in Datagridview Pin
sam#25-Oct-06 7:58
sam#25-Oct-06 7:58 
QuestionProper way to handle single instance application and multithreading Pin
Dan Neely25-Oct-06 3:47
Dan Neely25-Oct-06 3:47 
AnswerRe: Proper way to handle single instance application and multithreading Pin
ejuanpp25-Oct-06 4:23
ejuanpp25-Oct-06 4:23 
GeneralRe: Proper way to handle single instance application and multithreading Pin
Dan Neely25-Oct-06 4:56
Dan Neely25-Oct-06 4:56 
QuestionJust want to init a member of a struct Pin
qingyingqy25-Oct-06 2:34
qingyingqy25-Oct-06 2:34 
AnswerRe: Just want to init a member of a struct Pin
User 665825-Oct-06 3:13
User 665825-Oct-06 3:13 
AnswerRe: Just want to init a member of a struct Pin
Guffa25-Oct-06 3:15
Guffa25-Oct-06 3:15 
QuestionComboBox and DataSource attribute Pin
zaboboa25-Oct-06 2:33
zaboboa25-Oct-06 2:33 
AnswerRe: ComboBox and DataSource attribute Pin
sam#25-Oct-06 7:47
sam#25-Oct-06 7:47 
QuestionDisable Ambient properties from being set Pin
chricla25-Oct-06 2:23
chricla25-Oct-06 2:23 

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.