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

.NET (Core and Framework)

 
GeneralRe: Convert image pdf to text in c# Pin
arushi mehra10-Dec-22 5:13
professionalarushi mehra10-Dec-22 5:13 
GeneralRe: Convert image pdf to text in c# Pin
Dave Kreskowiak10-Dec-22 5:33
mveDave Kreskowiak10-Dec-22 5:33 
GeneralRe: Convert image pdf to text in c# Pin
Richard Deeming12-Dec-22 23:30
mveRichard Deeming12-Dec-22 23:30 
GeneralRe: Convert image pdf to text in c# Pin
Dave Kreskowiak13-Dec-22 1:56
mveDave Kreskowiak13-Dec-22 1:56 
AnswerRe: Convert image pdf to text in c# Pin
Sam Hobbs9-Dec-22 9:51
Sam Hobbs9-Dec-22 9:51 
AnswerRe: Convert image pdf to text in c# Pin
Kirk Hawley13-Aug-23 8:29
professionalKirk Hawley13-Aug-23 8:29 
QuestionMessage Removed Pin
21-Nov-22 19:13
professionalLaiju k21-Nov-22 19:13 
RantMessage Removed Pin
21-Nov-22 21:43
mveRichard Deeming21-Nov-22 21:43 
Question.NET 7 slower than .NET 6? Pin
Kevin McFarlane18-Nov-22 4:07
Kevin McFarlane18-Nov-22 4:07 
AnswerRe: .NET 7 slower than .NET 6? Pin
Gerry Schmitz18-Nov-22 4:18
mveGerry Schmitz18-Nov-22 4:18 
GeneralRe: .NET 7 slower than .NET 6? Pin
Kevin McFarlane18-Nov-22 4:33
Kevin McFarlane18-Nov-22 4:33 
AnswerRe: .NET 7 slower than .NET 6? Pin
Richard Deeming18-Nov-22 4:19
mveRichard Deeming18-Nov-22 4:19 
GeneralRe: .NET 7 slower than .NET 6? Pin
Kevin McFarlane23-Nov-22 4:33
Kevin McFarlane23-Nov-22 4:33 
Questionfor each loop with if else statement Pin
Walter Schmidt 20221-Nov-22 10:56
Walter Schmidt 20221-Nov-22 10: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;
}

AnswerRe: for each loop with if else statement Pin
jochance7-Mar-23 9:20
jochance7-Mar-23 9:20 
GeneralRe: for each loop with if else statement Pin
Walter Schmidt 20227-Mar-23 10:03
Walter Schmidt 20227-Mar-23 10:03 
QuestionWhat does the Rollback method in EF Core do? Pin
dataminers30-Oct-22 23:52
dataminers30-Oct-22 23:52 
AnswerRe: What does the Rollback method in EF Core do? Pin
Richard MacCutchan31-Oct-22 0:30
mveRichard MacCutchan31-Oct-22 0:30 
GeneralRe: What does the Rollback method in EF Core do? Pin
dataminers31-Oct-22 3:14
dataminers31-Oct-22 3:14 
GeneralRe: What does the Rollback method in EF Core do? Pin
Richard Deeming31-Oct-22 3:21
mveRichard Deeming31-Oct-22 3:21 
GeneralRe: What does the Rollback method in EF Core do? Pin
dataminers31-Oct-22 21:09
dataminers31-Oct-22 21:09 
Question.net 6.0 web api how increment request timeout? Pin
ste2224-Oct-22 23:01
ste2224-Oct-22 23:01 
AnswerRe: .net 6.0 web api how increment request timeout? Pin
Richard Deeming25-Oct-22 1:48
mveRichard Deeming25-Oct-22 1:48 
QuestionWays to migrate a Silverlight application? Pin
Member 1579410912-Oct-22 22:54
Member 1579410912-Oct-22 22:54 
AnswerRe: Ways to migrate a Silverlight application? Pin
Richard Deeming12-Oct-22 23:27
mveRichard Deeming12-Oct-22 23:27 

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.