Click here to Skip to main content
16,006,845 members
Home / Discussions / C#
   

C#

 
GeneralRe: Convert Object To Byte Array Pin
Nnamdi Onyeyiri5-Sep-02 8:43
Nnamdi Onyeyiri5-Sep-02 8:43 
GeneralRe: Convert Object To Byte Array Pin
Nick Parker5-Sep-02 8:44
protectorNick Parker5-Sep-02 8:44 
GeneralRe: Convert Object To Byte Array Pin
Nnamdi Onyeyiri5-Sep-02 8:50
Nnamdi Onyeyiri5-Sep-02 8:50 
GeneralRe: Convert Object To Byte Array Pin
Nick Parker5-Sep-02 8:54
protectorNick Parker5-Sep-02 8:54 
GeneralRe: Convert Object To Byte Array Pin
Nnamdi Onyeyiri5-Sep-02 9:29
Nnamdi Onyeyiri5-Sep-02 9:29 
GeneralRe: Convert Object To Byte Array Pin
Nick Parker5-Sep-02 9:29
protectorNick Parker5-Sep-02 9:29 
GeneralRe: Convert Object To Byte Array Pin
Nick Parker5-Sep-02 10:07
protectorNick Parker5-Sep-02 10:07 
GeneralRegex replacement-Fixed Pin
Zombies with Coffee, LLC5-Sep-02 6:32
professionalZombies with Coffee, LLC5-Sep-02 6:32 
I was wanting to replace my 'first' name with an edit that the user has performed. I am breaking up the information well, thanks to Eric Gunnerson's marvelous little regex program.

Regex regName = new Regex( @"?< Last >[^,]+)*(,)*( )*(?< First >\S+)*( )*(?< Middle >.+)$" );
String strFirst = "Jane";
String strCurrent = "Doe, John William";

Match pMatch = regName.Match( strCurrent );

if( pMatch.Success )
{
   Group pGroup = pMatch.Groups[ " First " ];

   if( pGroup.Index > 0 )
      strReplace  = strText.Substring( 0, pGroup.Index );

   strReplace += strFirst;

   if( pGroup.Index + pGroup.Length < strText.Length )
      strReplace += strText.Substring( pGroup.Index + pGroup.Length );
}

GeneralConvert Byte Array To String Pin
Nick Parker5-Sep-02 5:47
protectorNick Parker5-Sep-02 5:47 
GeneralRe: Convert Byte Array To String Pin
Nnamdi Onyeyiri5-Sep-02 5:49
Nnamdi Onyeyiri5-Sep-02 5:49 
GeneralRe: Convert Byte Array To String Pin
Paul Ingles5-Sep-02 6:02
Paul Ingles5-Sep-02 6:02 
GeneralRe: Convert Byte Array To String Pin
jparsons5-Sep-02 12:22
jparsons5-Sep-02 12:22 
GeneralCallbacks Pin
Nnamdi Onyeyiri5-Sep-02 3:55
Nnamdi Onyeyiri5-Sep-02 3:55 
GeneralRe: Callbacks Pin
Stephane Rodriguez.5-Sep-02 4:16
Stephane Rodriguez.5-Sep-02 4:16 
GeneralRe: Callbacks Pin
Nnamdi Onyeyiri5-Sep-02 4:24
Nnamdi Onyeyiri5-Sep-02 4:24 
GeneralRe: Callbacks Pin
Stephane Rodriguez.5-Sep-02 4:47
Stephane Rodriguez.5-Sep-02 4:47 
GeneralRe: Callbacks Pin
Nnamdi Onyeyiri5-Sep-02 5:48
Nnamdi Onyeyiri5-Sep-02 5:48 
GeneralRe: Callbacks Pin
James T. Johnson5-Sep-02 11:33
James T. Johnson5-Sep-02 11:33 
GeneralRe: Callbacks Pin
leppie6-Sep-02 1:16
leppie6-Sep-02 1:16 
Generalaligning hexadecimal output Pin
Rüpel5-Sep-02 3:06
Rüpel5-Sep-02 3:06 
GeneralRe: aligning hexadecimal output Pin
leppie5-Sep-02 3:18
leppie5-Sep-02 3:18 
GeneralRe: aligning hexadecimal output Pin
Rüpel5-Sep-02 3:26
Rüpel5-Sep-02 3:26 
GeneralRe: aligning hexadecimal output Pin
Rüpel5-Sep-02 3:25
Rüpel5-Sep-02 3:25 
GeneralRe: aligning hexadecimal output Pin
Stephane Rodriguez.5-Sep-02 7:04
Stephane Rodriguez.5-Sep-02 7:04 
GeneralApplication.Exit isn't working Pin
jparsons5-Sep-02 3:04
jparsons5-Sep-02 3:04 

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.