The Operater ?:

   Condition?True_Value:Flase_Value
   Explain:
     if(Condition == True)
         {
               return True_Value;
         }
      else
         {
               return Flase_Value;
         }
   Condition:Boolean Expression
   True_Value:The Return Value When Condition Is True
   False_Value:The Return Value When Condtion is False
   Samples:
   public Static int GetValue()
      {
      int iD;
      Return iD =( 1 == 2 )?3:4;   
      }
   The Result:4
    You Must Catch On It.HaHa;
 
posted @ 2007-04-01 22:03  David.You  阅读(190)  评论(0编辑  收藏  举报