Click here to Skip to main content
15,902,854 members
Home / Discussions / C#
   

C#

 
GeneralRe: Rougelike project Map Cell history, Suggestions? Pin
Jason Farrar15-Jul-08 6:14
Jason Farrar15-Jul-08 6:14 
Questionresize proportionally for listbox Pin
emailthiaga15-Jul-08 2:58
emailthiaga15-Jul-08 2:58 
AnswerRe: resize proportionally for listbox Pin
John Ad15-Jul-08 3:16
John Ad15-Jul-08 3:16 
GeneralRe: resize proportionally for listbox Pin
emailthiaga15-Jul-08 4:02
emailthiaga15-Jul-08 4:02 
Questionhttp://company.zhaopin.com/P2/CC1536/6331/CC153663319.htm?DYWE=1213680294625.66308.1216003477.1216121212.8 [modified] Pin
chenli051315-Jul-08 1:33
chenli051315-Jul-08 1:33 
GeneralRe: http://company.zhaopin.com/P2/CC1536/6331/CC153663319.htm?DYWE=1213680294625.66308.1216003477.1216121212.8 Pin
Simon P Stevens15-Jul-08 1:52
Simon P Stevens15-Jul-08 1:52 
GeneralSubject line too long and scary... Pin
Paul Conrad16-Jul-08 4:48
professionalPaul Conrad16-Jul-08 4:48 
QuestionAND and OR with expressions Pin
enginço15-Jul-08 1:28
enginço15-Jul-08 1:28 
http://www.albahari.com/nutshell/predicatebuilder.html[^]

I found a link about expressions. Can someone explain that how can I use? Is it helpfully?
or are there any idea for my problem with LINQ and expressions? (please don't say REGEX) Smile | :)

I have a class like this:

public class SearchWord
{
  ...
  public string Search_key { get; set; }
  public string And_key { get; set; }
  public string Not_key { get; set; }
  ...
  ...
}


SearchWord sw1 = {Search_key = "test", And_key = "", Not_key = ""};
SearchWord sw2 = {Search_key = "test", And_key = "email", Not_key = ""};
SearchWord sw3 = {Search_key = "test", And_key = "email", Not_key = "engin"};

I have a big text:

string forSearch = "test hkkdkh yrfjkdh ggshdj bla bla bla email bla bla sdkj engin";

there are 4 case for my situation:
test = returns bool
test and email = returns bool
test and engin = returns bool
test and email and engin = returns bool

Now, I want to compare this 4 result and return SearchWord(if result = true)

Please help me...
QuestionRe: AND and OR with expressions Pin
CPallini15-Jul-08 2:36
mveCPallini15-Jul-08 2:36 
AnswerRe: AND and OR with expressions Pin
enginço15-Jul-08 4:19
enginço15-Jul-08 4:19 
QuestionC# Datagridview Pin
Member 364449715-Jul-08 0:57
Member 364449715-Jul-08 0:57 
AnswerRe: C# Datagridview Pin
benjymous15-Jul-08 1:08
benjymous15-Jul-08 1:08 
Questionto get record count of SQL Query...? Pin
Raheem MA15-Jul-08 0:52
Raheem MA15-Jul-08 0:52 
AnswerRe: to get record count of SQL Query...? Pin
mark_w_15-Jul-08 0:57
mark_w_15-Jul-08 0:57 
AnswerRe: to get record count of SQL Query...? Pin
Nirandas15-Jul-08 1:22
Nirandas15-Jul-08 1:22 
GeneralRe: to get record count of SQL Query...? Pin
Raheem MA15-Jul-08 1:58
Raheem MA15-Jul-08 1:58 
AnswerRe: to get record count of SQL Query...? Pin
Wendelius15-Jul-08 6:45
mentorWendelius15-Jul-08 6:45 
QuestionUsing value in string variable as "type" Pin
dan!sh 15-Jul-08 0:51
professional dan!sh 15-Jul-08 0:51 
GeneralRe: Using value in string variable as "type" Pin
dan!sh 15-Jul-08 0:59
professional dan!sh 15-Jul-08 0:59 
AnswerRe: Using value in string variable as "type" Pin
S. Senthil Kumar15-Jul-08 9:08
S. Senthil Kumar15-Jul-08 9:08 
QuestionDisable screensaver through C# app with out admin rights Pin
CNReddy15-Jul-08 0:31
CNReddy15-Jul-08 0:31 
AnswerRe: Disable screensaver through C# app with out admin rights Pin
Simon P Stevens15-Jul-08 1:29
Simon P Stevens15-Jul-08 1:29 
AnswerRe: Disable screensaver through C# app with out admin rights Pin
Thomas Stockwell15-Jul-08 8:29
professionalThomas Stockwell15-Jul-08 8:29 
QuestionDoes Unified communication client api works with any thing other than Office Commnication Server.... Pin
Atif Ali Bhatti15-Jul-08 0:30
Atif Ali Bhatti15-Jul-08 0:30 
AnswerRe: Does Unified communication client api works with any thing other than Office Commnication Server.... Pin
Atif Ali Bhatti15-Jul-08 0:46
Atif Ali Bhatti15-Jul-08 0:46 

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.