Click here to Skip to main content
15,904,652 members
Home / Discussions / C#
   

C#

 
AnswerRe: need help with windows application Pin
Deresen21-Feb-09 3:11
Deresen21-Feb-09 3:11 
AnswerRe: need help with windows application Pin
balukk21-Feb-09 3:56
balukk21-Feb-09 3:56 
GeneralRe: need help with windows application Pin
Deresen22-Feb-09 2:23
Deresen22-Feb-09 2:23 
GeneralRe: need help with windows application Pin
balukk23-Feb-09 5:44
balukk23-Feb-09 5:44 
QuestionWrite into Stream Pin
Abdul Rahman Hamidy20-Feb-09 22:21
Abdul Rahman Hamidy20-Feb-09 22:21 
Questioncrystal reports Pin
sritha20-Feb-09 22:19
sritha20-Feb-09 22:19 
QuestionTo Create Property or Method For another indexer property i write??? Pin
thrashead20-Feb-09 21:45
thrashead20-Feb-09 21:45 
QuestionUnsafe Code + GetEnumerator() [modified] Pin
grzesio191220-Feb-09 21:24
grzesio191220-Feb-09 21:24 
Hello,
I have a problem in my application and I don't really know how to solve it:

unsafe public System.Collections.IEnumerator GetEnumerator()
{
char[] sString1 = new char[max];
for (int numer = 0; numer < roz; numer++)
{
fixed (char* sString = sString1)
{
for (int i = min; i <= max; i++)
{
string a = brute(sString, 2, sString1, numer);
yield return a;
}
}
}
}

private string brute(char* sString, int nLen, char[] sPoczatek, int num)
{
while (nLen > 0)
{

if (nLen == 1)
{
for (int i = num; i < zn.Length; i += roz)
{
sString[0] = zn[i];
brute(sString + 1, nLen - 1, sPoczatek, num);
}
}
else
{
for (int i = 0; i < zn.Length; i++)
{
sString[0] = zn[i];
brute(sString + 1, nLen - 1, sPoczatek, num);
}
}
}
return sPoczatek.ToString();

}

Error 1 Unsafe code may not appear in iterators

Is that possible to use GetEnumerator() with unsafe code?

111

modified on Sunday, February 22, 2009 11:38 AM

Questionwindoes live id / hotmail authentication in c# windows application Pin
techismart20-Feb-09 19:22
techismart20-Feb-09 19:22 
AnswerRe: windoes live id / hotmail authentication in c# windows application Pin
Eslam Afifi21-Feb-09 4:28
Eslam Afifi21-Feb-09 4:28 
QuestionRTF format !!! Pin
Mohammad Dayyan20-Feb-09 18:03
Mohammad Dayyan20-Feb-09 18:03 
Questioncommon language runtime error Pin
ashkan002120-Feb-09 17:58
ashkan002120-Feb-09 17:58 
AnswerRe: common language runtime error Pin
Xmen Real 20-Feb-09 18:00
professional Xmen Real 20-Feb-09 18:00 
Questionuse one serialport Rx, RTS and CTS at the same time causing conflict!? Pin
little_cOder20-Feb-09 13:41
little_cOder20-Feb-09 13:41 
QuestionC# Replicating SQL Server Scheduler Pin
MasterEvilAce20-Feb-09 12:32
MasterEvilAce20-Feb-09 12:32 
QuestionHow to remove the seconds from DatetimePicker ???? Pin
Yanshof20-Feb-09 12:00
Yanshof20-Feb-09 12:00 
AnswerRe: How to remove the seconds from DatetimePicker ???? Pin
PIEBALDconsult20-Feb-09 14:03
mvePIEBALDconsult20-Feb-09 14:03 
AnswerRe: How to remove the seconds from DatetimePicker ???? Pin
Riaan Booyzen20-Feb-09 17:50
Riaan Booyzen20-Feb-09 17:50 
GeneralRe: How to remove the seconds from DatetimePicker ???? Pin
Yanshof20-Feb-09 23:23
Yanshof20-Feb-09 23:23 
GeneralRe: How to remove the seconds from DatetimePicker ???? Pin
arnepop23-Mar-10 4:20
arnepop23-Mar-10 4:20 
QuestionAccessing db fields through Mule Web Service from ASP.NET 3.5 in C# Pin
Cindy White20-Feb-09 6:18
Cindy White20-Feb-09 6:18 
AnswerRe: Accessing db fields through Mule Web Service from ASP.NET 3.5 in C# Pin
vaghelabhavesh20-Feb-09 6:22
vaghelabhavesh20-Feb-09 6:22 
GeneralRe: Accessing db fields through Mule Web Service from ASP.NET 3.5 in C# Pin
Cindy White20-Feb-09 6:27
Cindy White20-Feb-09 6:27 
QuestionCan we use the Queue Class for structs? Pin
Bruce Coward20-Feb-09 5:22
Bruce Coward20-Feb-09 5:22 
AnswerRe: Can we use the Queue Class for structs? [modified] Pin
harold aptroot20-Feb-09 6:49
harold aptroot20-Feb-09 6:49 

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.