Click here to Skip to main content
15,923,006 members
Home / Discussions / C#
   

C#

 
GeneralRe: Graph Disappear Problem vol 2 Pin
StuffyEst11-Mar-09 4:25
StuffyEst11-Mar-09 4:25 
QuestionProgrammatically Setting the Application's Privilege Level? Pin
That Asian Guy10-Mar-09 11:33
That Asian Guy10-Mar-09 11:33 
AnswerRe: Programmatically Setting the Application's Privilege Level? Pin
Ravadre10-Mar-09 13:14
Ravadre10-Mar-09 13:14 
QuestionOleDB UPDATE command throws exception Pin
Matthew Klein10-Mar-09 11:03
Matthew Klein10-Mar-09 11:03 
AnswerRe: OleDB UPDATE command throws exception Pin
Yusuf10-Mar-09 11:33
Yusuf10-Mar-09 11:33 
AnswerRe: OleDB UPDATE command throws exception Pin
Matthew Klein10-Mar-09 12:23
Matthew Klein10-Mar-09 12:23 
QuestionUpdate Database(ACCESS) from ASP page Pin
daks90610-Mar-09 10:11
daks90610-Mar-09 10:11 
AnswerRe: Update Database(ACCESS) from ASP page Pin
led mike10-Mar-09 10:25
led mike10-Mar-09 10:25 
QuestionRe: Update Database(ACCESS) from ASP page Pin
daks90610-Mar-09 12:08
daks90610-Mar-09 12:08 
AnswerRe: Update Database(ACCESS) from ASP page Pin
Yusuf10-Mar-09 11:38
Yusuf10-Mar-09 11:38 
QuestionDirectsound Sine wave Pin
Eja Beja10-Mar-09 9:33
Eja Beja10-Mar-09 9:33 
AnswerRe: Directsound Sine wave Pin
Luc Pattyn10-Mar-09 9:48
sitebuilderLuc Pattyn10-Mar-09 9:48 
AnswerRe: Directsound Sine wave Pin
Ravi Bhavnani10-Mar-09 13:19
professionalRavi Bhavnani10-Mar-09 13:19 
QuestionHow to prio-hide controls when window gets too small? Pin
ioctl5110-Mar-09 7:44
ioctl5110-Mar-09 7:44 
AnswerRe: How to prio-hide controls when window gets too small? Pin
Luc Pattyn10-Mar-09 7:48
sitebuilderLuc Pattyn10-Mar-09 7:48 
QuestionDataGridView naughty behavior Pin
Muammar©10-Mar-09 7:39
Muammar©10-Mar-09 7:39 
AnswerRe: DataGridView naughty behavior Pin
musefan10-Mar-09 7:41
musefan10-Mar-09 7:41 
AnswerRe: DataGridView naughty behavior Pin
Muammar©10-Mar-09 7:50
Muammar©10-Mar-09 7:50 
QuestionHow Can I Hide String Key Pin
dataminers10-Mar-09 7:18
dataminers10-Mar-09 7:18 
AnswerRe: How Can I Hide String Key Pin
musefan10-Mar-09 7:31
musefan10-Mar-09 7:31 
GeneralRe: How Can I Hide String Key Pin
dataminers10-Mar-09 10:48
dataminers10-Mar-09 10:48 
AnswerRe: How Can I Hide String Key Pin
0x3c010-Mar-09 7:53
0x3c010-Mar-09 7:53 
GeneralRe: How Can I Hide String Key Pin
dataminers10-Mar-09 10:53
dataminers10-Mar-09 10:53 
GeneralRe: How Can I Hide String Key [modified] Pin
0x3c010-Mar-09 11:33
0x3c010-Mar-09 11:33 
GeneralRe: How Can I Hide String Key Pin
dataminers11-Mar-09 1:37
dataminers11-Mar-09 1:37 
In your sample not include identifier (for example string), so compiler get error. I try this;

internal class MyClass
{
internal static readonly string mySecretPassword1 = "MySecretKey";
private static readonly string mySecretPassword2 = "MySecretKey";
private const string mySecretPassword3 = "MySecretKey";
internal const string mySecretPassword4 = "MySecretKey";
private static string mySecretPassword5 = "MySecretKey";
internal static string mySecretPassword6 = "MySecretKey";
}

And obfuscation with Dotfuscator Community Edition and Salamander .NET obfuscator. And post build with Xenocode Postbuild 2008 for .NET. But I can see "MySecretKey" when I open obfuscated dll with reflector. In ".cctor()" function.


Note: In C#.NET
const = value assigned at Compile time and unchangeable once established.
readonly = value assigned at run time and unchangeable once established.

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.