Click here to Skip to main content
15,560,618 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Convert image pdf to text in c# Pin
Dave Kreskowiak13-Dec-22 2:56
mveDave Kreskowiak13-Dec-22 2:56 
AnswerRe: Convert image pdf to text in c# Pin
Sam Hobbs9-Dec-22 10:51
Sam Hobbs9-Dec-22 10:51 
Question.NET 7 slower than .NET 6? Pin
Kevin McFarlane18-Nov-22 5:07
Kevin McFarlane18-Nov-22 5:07 
AnswerRe: .NET 7 slower than .NET 6? Pin
Gerry Schmitz18-Nov-22 5:18
mveGerry Schmitz18-Nov-22 5:18 
GeneralRe: .NET 7 slower than .NET 6? Pin
Kevin McFarlane18-Nov-22 5:33
Kevin McFarlane18-Nov-22 5:33 
AnswerRe: .NET 7 slower than .NET 6? Pin
Richard Deeming18-Nov-22 5:19
mveRichard Deeming18-Nov-22 5:19 
GeneralRe: .NET 7 slower than .NET 6? Pin
Kevin McFarlane23-Nov-22 5:33
Kevin McFarlane23-Nov-22 5:33 
Questionfor each loop with if else statement Pin
Walter Schmidt 20221-Nov-22 11:56
Walter Schmidt 20221-Nov-22 11:56 
Just out of curiosity:

What is the reason, that the following code doesn't compile under Visual Studio:

C++
int main(array<System::String ^> ^args)
{
   array<int>^ l = {1,2,3};

   for each (int a in l)
      if (a % 2 == 1)
         Console::WriteLine ("even");
      else
         Console::WriteLine ("odd");

    return 0;
}


This results in the error "else without if".
One needs to use a compound statements around the if-else-statement.

Using a standard for-loop this works as expected, of course:
C++
int main(array<System::String ^> ^args)
{
   array<int>^ l = {1,2,3};

   for (int i = 0; i < l->Length; ++i)
      if (l[i] % 2 == 1)
         Console::WriteLine ("even");
      else
         Console::WriteLine ("odd");

    return 0;
}

QuestionWhat does the Rollback method in EF Core do? Pin
dataminers31-Oct-22 0:52
dataminers31-Oct-22 0:52 
AnswerRe: What does the Rollback method in EF Core do? Pin
Richard MacCutchan31-Oct-22 1:30
mveRichard MacCutchan31-Oct-22 1:30 
GeneralRe: What does the Rollback method in EF Core do? Pin
dataminers31-Oct-22 4:14
dataminers31-Oct-22 4:14 
GeneralRe: What does the Rollback method in EF Core do? Pin
Richard Deeming31-Oct-22 4:21
mveRichard Deeming31-Oct-22 4:21 
GeneralRe: What does the Rollback method in EF Core do? Pin
dataminers31-Oct-22 22:09
dataminers31-Oct-22 22:09 
Question.net 6.0 web api how increment request timeout? Pin
ste2225-Oct-22 0:01
ste2225-Oct-22 0:01 
AnswerRe: .net 6.0 web api how increment request timeout? Pin
Richard Deeming25-Oct-22 2:48
mveRichard Deeming25-Oct-22 2:48 
QuestionWays to migrate a Silverlight application? Pin
Member 1579410912-Oct-22 23:54
Member 1579410912-Oct-22 23:54 
AnswerRe: Ways to migrate a Silverlight application? Pin
Richard Deeming13-Oct-22 0:27
mveRichard Deeming13-Oct-22 0:27 
Questioncsv file sort and create a new and store the data Pin
Member 1577533021-Sep-22 21:52
Member 1577533021-Sep-22 21:52 
AnswerRe: csv file sort and create a new and store the data Pin
Richard Deeming21-Sep-22 22:31
mveRichard Deeming21-Sep-22 22:31 
QuestionPLINQ - WithDegreeOfParallelism Pin
dataminers9-Sep-22 6:27
dataminers9-Sep-22 6:27 
AnswerRe: PLINQ - WithDegreeOfParallelism Pin
Richard MacCutchan9-Sep-22 6:50
mveRichard MacCutchan9-Sep-22 6:50 
GeneralRe: PLINQ - WithDegreeOfParallelism Pin
dataminers9-Sep-22 11:18
dataminers9-Sep-22 11:18 
GeneralRe: PLINQ - WithDegreeOfParallelism Pin
Richard MacCutchan9-Sep-22 22:53
mveRichard MacCutchan9-Sep-22 22:53 
GeneralRe: PLINQ - WithDegreeOfParallelism Pin
dataminers11-Sep-22 3:01
dataminers11-Sep-22 3:01 
GeneralRe: PLINQ - WithDegreeOfParallelism Pin
Dave Kreskowiak11-Sep-22 5:36
mveDave Kreskowiak11-Sep-22 5:36 

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.