Click here to Skip to main content
15,906,766 members
Home / Discussions / C#
   

C#

 
AnswerRe: tlbimp.exe and Ildasm.exe? Pin
pallep41-Apr-03 4:25
pallep41-Apr-03 4:25 
AnswerRe: tlbimp.exe and Ildasm.exe? Pin
monrobot131-Apr-03 4:28
monrobot131-Apr-03 4:28 
GeneralRe: tlbimp.exe and Ildasm.exe? Pin
econner1-Apr-03 4:37
econner1-Apr-03 4:37 
GeneralRe: tlbimp.exe and Ildasm.exe? Pin
econner1-Apr-03 4:53
econner1-Apr-03 4:53 
GeneralRe: tlbimp.exe and Ildasm.exe? Pin
monrobot131-Apr-03 5:38
monrobot131-Apr-03 5:38 
GeneralBitwise operations Pin
zoltan_ie1-Apr-03 2:16
zoltan_ie1-Apr-03 2:16 
GeneralRe: Bitwise operations Pin
Jim Stewart1-Apr-03 4:15
Jim Stewart1-Apr-03 4:15 
GeneralRe: Bitwise operations Pin
monrobot131-Apr-03 4:23
monrobot131-Apr-03 4:23 
You could try this, convert value to a ulong and in your if statement use Convert.ToBoolean () to convert the value & VOLATILITY_DISPLAY_SHARPE to a boolean:

ulong value = VOLATILITY_DISPLAY_PERFORMANCE + VOLATILITY_DISPLAY_SHARPE;

/*it no longer throws a compiler error for next line*/
if(Convert.ToBoolean(value & VOLATILITY_DISPLAY_SHARPE)) /* == TRUE */
{
/*DO SOME THING*/
}


- monrobot13
GeneralRe: Bitwise operations Pin
James T. Johnson1-Apr-03 6:58
James T. Johnson1-Apr-03 6:58 
QuestionHow To Use COM DLL in POcketPC application Pin
Member 3187921-Apr-03 2:15
Member 3187921-Apr-03 2:15 
GeneralMessageBox Buttons Pin
Mazdak1-Apr-03 0:49
Mazdak1-Apr-03 0:49 
GeneralRe: MessageBox Buttons Pin
James T. Johnson1-Apr-03 7:27
James T. Johnson1-Apr-03 7:27 
Generalmulti threaded client Pin
novice.NET1-Apr-03 0:18
novice.NET1-Apr-03 0:18 
GeneralRe: multi threaded client Pin
Le centriste1-Apr-03 10:01
Le centriste1-Apr-03 10:01 
Generalweb reference Pin
novice.NET1-Apr-03 0:14
novice.NET1-Apr-03 0:14 
QuestionIs this impossible ? Pin
Smitha Nishant31-Mar-03 23:32
protectorSmitha Nishant31-Mar-03 23:32 
AnswerRe: Is this impossible ? Pin
James T. Johnson1-Apr-03 7:15
James T. Johnson1-Apr-03 7:15 
GeneralRe: Is this impossible ? Pin
Smitha Nishant1-Apr-03 20:50
protectorSmitha Nishant1-Apr-03 20:50 
GeneralGetting a web browsers url Pin
ferdeen31-Mar-03 20:47
ferdeen31-Mar-03 20:47 
QuestionPlace button on form title? Pin
wei_xiang31-Mar-03 14:49
wei_xiang31-Mar-03 14:49 
GeneralInserting a tabpage Pin
monrobot1331-Mar-03 14:32
monrobot1331-Mar-03 14:32 
GeneralRe: Inserting a tabpage Pin
Chris Jobson1-Apr-03 8:14
Chris Jobson1-Apr-03 8:14 
GeneralRe: Inserting a tabpage Pin
monrobot131-Apr-03 13:38
monrobot131-Apr-03 13:38 
Generalusing references across servers Pin
novice.NET31-Mar-03 9:11
novice.NET31-Mar-03 9:11 
GeneralRe: using references across servers Pin
SimonS1-Apr-03 7:23
SimonS1-Apr-03 7: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.