Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
Questionarabic to roman numerals Pin
Salomon Velazquez25-Jun-12 12:38
Salomon Velazquez25-Jun-12 12:38 
AnswerRe: arabic to roman numerals Pin
PIEBALDconsult25-Jun-12 13:31
mvePIEBALDconsult25-Jun-12 13:31 
GeneralRe: arabic to roman numerals Pin
Salomon Velazquez25-Jun-12 13:51
Salomon Velazquez25-Jun-12 13:51 
GeneralRe: arabic to roman numerals Pin
PIEBALDconsult25-Jun-12 17:04
mvePIEBALDconsult25-Jun-12 17:04 
QuestionHow To Convert This From VB.Net Pin
Kevin Marois25-Jun-12 8:26
professionalKevin Marois25-Jun-12 8:26 
AnswerRe: How To Convert This From VB.Net Pin
Richard MacCutchan25-Jun-12 8:36
mveRichard MacCutchan25-Jun-12 8:36 
GeneralRe: How To Convert This From VB.Net Pin
Kevin Marois25-Jun-12 8:38
professionalKevin Marois25-Jun-12 8:38 
AnswerRe: How To Convert This From VB.Net Pin
OriginalGriff25-Jun-12 8:43
mveOriginalGriff25-Jun-12 8:43 
The full conversion is:
C#
private void UpdateSecurityStatus(ref deviceStruct device, Int16 w128)
{
    device.ATAdeviceInfo.MasterPasswordCapabilty = (w128 >> 8) & 1;
    device.ATAdeviceInfo.EnhancedSecurityErase = (w128 >> 5) & 1;
    device.ATAdeviceInfo.SecurityCountExpired = (w128 >> 4) & 1;
    device.ATAdeviceInfo.SecurityFrozen = (w128 >> 3) & 1;
    device.ATAdeviceInfo.SecuirtyLocked = (w128 >> 2) & 1;
    device.ATAdeviceInfo.SecurityEnabled = (w128 >> 1) & 1;
    device.ATAdeviceInfo.SecuritySupported = w128 & 1;
}

If you have conversions to do just go here: http://www.developerfusion.com/tools/convert/vb-to-csharp/[^] - it's a free online Vb to C# and vice versa converter. I used it for teh above, and use it for answering VB questions in QA. It's not perfect, but it gets a good percentage of it done. If it compiles in VS, it will probably convert automatically.
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

GeneralRe: How To Convert This From VB.Net Pin
Kevin Marois25-Jun-12 10:12
professionalKevin Marois25-Jun-12 10:12 
AnswerRe: How To Convert This From VB.Net Pin
Karthik Harve25-Jun-12 21:46
professionalKarthik Harve25-Jun-12 21:46 
Generaldefault textbox value Pin
vins2125-Jun-12 3:34
vins2125-Jun-12 3:34 
GeneralRe: default textbox value Pin
Pete O'Hanlon25-Jun-12 3:36
mvePete O'Hanlon25-Jun-12 3:36 
GeneralRe: default textbox value Pin
vins2125-Jun-12 3:53
vins2125-Jun-12 3:53 
AnswerRe: default textbox value Pin
Eddy Vluggen25-Jun-12 4:39
professionalEddy Vluggen25-Jun-12 4:39 
GeneralRe: default textbox value Pin
Sunil P V26-Jun-12 0:05
Sunil P V26-Jun-12 0:05 
QuestionHow to access the method from an Internal Class in a assembly/dll Pin
Rocky2325-Jun-12 2:30
Rocky2325-Jun-12 2:30 
AnswerRe: How to access the method from an Internal Class in a assembly/dll Pin
BobJanova25-Jun-12 2:36
BobJanova25-Jun-12 2:36 
GeneralRe: How to access the method from an Internal Class in a assembly/dll Pin
Rocky2325-Jun-12 2:54
Rocky2325-Jun-12 2:54 
GeneralRe: How to access the method from an Internal Class in a assembly/dll Pin
BobJanova25-Jun-12 4:49
BobJanova25-Jun-12 4:49 
GeneralRe: How to access the method from an Internal Class in a assembly/dll Pin
Rocky2325-Jun-12 4:56
Rocky2325-Jun-12 4:56 
GeneralRe: How to access the method from an Internal Class in a assembly/dll Pin
BobJanova25-Jun-12 5:21
BobJanova25-Jun-12 5:21 
QuestionRe: How to access the method from an Internal Class in a assembly/dll Pin
Eddy Vluggen25-Jun-12 3:28
professionalEddy Vluggen25-Jun-12 3:28 
AnswerRe: How to access the method from an Internal Class in a assembly/dll Pin
Rocky2325-Jun-12 4:52
Rocky2325-Jun-12 4:52 
GeneralRe: How to access the method from an Internal Class in a assembly/dll Pin
Eddy Vluggen25-Jun-12 6:04
professionalEddy Vluggen25-Jun-12 6:04 
Questionhow to use desktop composition + C# Pin
jojoba201124-Jun-12 20:59
jojoba201124-Jun-12 20:59 

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.