Click here to Skip to main content
15,892,927 members
Home / Discussions / C#
   

C#

 
GeneralRe: FileSystemEventHandler arg type Pin
led mike24-Jul-08 11:42
led mike24-Jul-08 11:42 
GeneralRe: FileSystemEventHandler arg type Pin
Not Knuth24-Jul-08 11:46
Not Knuth24-Jul-08 11:46 
QuestionProblem moving Controls at runtime Pin
kbalias24-Jul-08 9:49
kbalias24-Jul-08 9:49 
QuestionTrace Statements Pin
#realJSOP24-Jul-08 9:31
mve#realJSOP24-Jul-08 9:31 
AnswerRe: Trace Statements Pin
Wendelius24-Jul-08 9:40
mentorWendelius24-Jul-08 9:40 
AnswerRe: Trace Statements Pin
led mike24-Jul-08 10:53
led mike24-Jul-08 10:53 
QuestionRemove Node in XML file Pin
dataminers24-Jul-08 9:26
dataminers24-Jul-08 9:26 
AnswerRe: Remove Node in XML file Pin
PIEBALDconsult24-Jul-08 10:16
mvePIEBALDconsult24-Jul-08 10:16 
Questiondisplaying a date range in a listview Pin
obievil24-Jul-08 9:08
obievil24-Jul-08 9:08 
AnswerRe: displaying a date range in a listview Pin
Wendelius24-Jul-08 9:27
mentorWendelius24-Jul-08 9:27 
Questionimplementing shortcut keys Pin
ankkit24-Jul-08 8:13
ankkit24-Jul-08 8:13 
AnswerRe: implementing shortcut keys Pin
PIEBALDconsult24-Jul-08 8:27
mvePIEBALDconsult24-Jul-08 8:27 
GeneralRe: implementing shortcut keys Pin
ankkit25-Jul-08 7:08
ankkit25-Jul-08 7:08 
GeneralRe: implementing shortcut keys Pin
PIEBALDconsult25-Jul-08 10:58
mvePIEBALDconsult25-Jul-08 10:58 
QuestionHow to set different color for different items in a list box. (asp.net page, C# backend) Pin
mdpavel24-Jul-08 6:46
mdpavel24-Jul-08 6:46 
AnswerRe: How to set different color for different items in a list box. (asp.net page, C# backend) Pin
Christian Graus24-Jul-08 10:59
protectorChristian Graus24-Jul-08 10:59 
AnswerRe: How to set different color for different items in a list box. (asp.net page, C# backend) Pin
nelsonpaixao24-Jul-08 13:10
nelsonpaixao24-Jul-08 13:10 
QuestionBitwise Circular Shift in C# Pin
Ian Uy24-Jul-08 6:38
Ian Uy24-Jul-08 6:38 
AnswerRe: Bitwise Circular Shift in C# [modified] Pin
User 665824-Jul-08 7:16
User 665824-Jul-08 7:16 
I love this sort of stuff. Something I just hacked together:

static byte CircularBitwiseShiftLeft(byte value, int times)
{
    for (int i = 0; i < times % 8; i++)
    {
        value = (byte)((value << 1) | (value >> 7));
    }

    return value;
}

static byte CircularBitwiseShiftRight(byte value, int times)
{
    for (int i = 0; i < times % 8; i++)
    {
        value = (byte)((value >> 1) | ((value & 0x1) << 7));
    }

    return value;
}


/edit: added % 8 to eliminate duplicate rotations for times > 8

regards

modified on Thursday, July 24, 2008 1:32 PM


modified 12-Sep-18 21:01pm.

GeneralRe: Bitwise Circular Shift in C# Pin
Ian Uy24-Jul-08 7:26
Ian Uy24-Jul-08 7:26 
GeneralRe: Bitwise Circular Shift in C# Pin
User 665824-Jul-08 7:31
User 665824-Jul-08 7:31 
GeneralRe: Bitwise Circular Shift in C# Pin
Luc Pattyn24-Jul-08 7:36
sitebuilderLuc Pattyn24-Jul-08 7:36 
GeneralRe: Bitwise Circular Shift in C# Pin
PIEBALDconsult24-Jul-08 8:43
mvePIEBALDconsult24-Jul-08 8:43 
GeneralRe: Bitwise Circular Shift in C# Pin
Guffa24-Jul-08 23:06
Guffa24-Jul-08 23:06 
GeneralRe: Bitwise Circular Shift in C# Pin
PIEBALDconsult25-Jul-08 11:03
mvePIEBALDconsult25-Jul-08 11:03 

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.