Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
GeneralRe: Conditional ?: Pin
Ian McCaul6-May-09 10:33
Ian McCaul6-May-09 10:33 
AnswerRe: Conditional ?: Pin
S. Senthil Kumar6-May-09 10:30
S. Senthil Kumar6-May-09 10:30 
GeneralRe: Conditional ?: Pin
Vikram A Punathambekar6-May-09 18:00
Vikram A Punathambekar6-May-09 18:00 
GeneralRe: Conditional ?: Pin
Jammer7-May-09 10:54
Jammer7-May-09 10:54 
GeneralRe: Conditional ?: Pin
S. Senthil Kumar7-May-09 20:40
S. Senthil Kumar7-May-09 20:40 
AnswerRe: Conditional ?: Pin
Abhijit Jana6-May-09 10:46
professionalAbhijit Jana6-May-09 10:46 
GeneralRe: Conditional ?: Pin
S. Senthil Kumar6-May-09 10:55
S. Senthil Kumar6-May-09 10:55 
GeneralRe: Conditional ?: Pin
Ian McCaul6-May-09 11:06
Ian McCaul6-May-09 11:06 
They dont need to be as I said earlier... i.e.

class Conditional
{
  private bool _myProperty;

  public bool MyProperty
  {
     get { return _myProperty; }
     set { _myProperty = value; }
  }

  public bool DoSomething()
  {
     bool s = _myProperty == true ? Method1() : Method2();
     return s;
  }

  public bool Method1()
  {
     return true;
  }

  public bool Method2()
  {
     return false;
  }
}

GeneralRe: Conditional ?: Pin
Mel Feik6-May-09 12:09
Mel Feik6-May-09 12:09 
AnswerRe: Conditional ?: Pin
Luc Pattyn6-May-09 11:00
sitebuilderLuc Pattyn6-May-09 11:00 
Question*.ico files Pin
Rajdeep.NET is BACK6-May-09 8:40
Rajdeep.NET is BACK6-May-09 8:40 
AnswerRe: *.ico files Pin
Henry Minute6-May-09 8:46
Henry Minute6-May-09 8:46 
AnswerRe: *.ico files Pin
Jabbar_espania6-May-09 10:58
Jabbar_espania6-May-09 10:58 
AnswerRe: *.ico files Pin
Jonathan Harker7-May-09 1:23
Jonathan Harker7-May-09 1:23 
QuestionPassing byte[] to Report Pin
Jacob Dixon6-May-09 8:39
Jacob Dixon6-May-09 8:39 
Questionreturn value Pin
behzadcp6-May-09 5:47
professionalbehzadcp6-May-09 5:47 
AnswerRe: return value Pin
DaveyM696-May-09 6:09
professionalDaveyM696-May-09 6:09 
GeneralRe: return value Pin
behzadcp6-May-09 6:19
professionalbehzadcp6-May-09 6:19 
GeneralRe: return value Pin
DaveyM696-May-09 9:36
professionalDaveyM696-May-09 9:36 
AnswerRe: return value Pin
OriginalGriff6-May-09 6:14
mveOriginalGriff6-May-09 6:14 
GeneralRe: return value Pin
musefan6-May-09 6:21
musefan6-May-09 6:21 
GeneralRe: return value Pin
Henry Minute6-May-09 7:14
Henry Minute6-May-09 7:14 
Questiondefinivelty confused about sqlite as embedded database Pin
highjo6-May-09 5:18
highjo6-May-09 5:18 
GeneralRe: definivelty confused about sqlite as embedded database Pin
highjo6-May-09 6:33
highjo6-May-09 6:33 
QuestionNeed to copy folder from one path to other Pin
honeyashu6-May-09 4:55
honeyashu6-May-09 4:55 

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.