pascal’s triangle code resulting in an infinite loop
title
no matter what I try, it always gives me System.ArgumentOutOfRangeException: ‘Index must be within the bounds of the List [closed]
Closed 13 mins ago.
no matter what I try, it always gives me System.ArgumentOutOfRangeException: ‘Index must be within the bounds of the List [closed]
Closed 13 mins ago.
If FileName is blank or empty, delete it
I need help to figure how to delete a file when it does not have a filename, per example:
004249 and 004252 do not have a file name and I would like to delete them. I hope I have added all the things you will need to help me with this part of my code. Thank you.
Adding MediatoR into a C# Console Application
I previously discovered the MediatoR and I’m impressed by it and wondering how to add MediatoR to a very simple C# console application.
How do you capture the startup error when starting a .NET 8 console app from a .NET 4.8 application when .NET 8.0 is not installed?
I am trying to launch a .NET 8 console application from a .NET 4.8 application and capture the stdout to use that output in the .NET 4.8 application. This all works.
How do I keep the console window open after running a C# program?
Problem Statement:
I’m learning C# and created a simple console application that prints ‘Hello World’. However, the console window closes immediately after running the program, and I can’t see the output. What is the best way to keep the console window open so I can view the output after running my C# program?
Call is Ambiguious for me but not my professor
I know there are similar questions but I don’t see one exactly like my issue. I have copied my professor’s code exactly (he was doing a walkthrough of one of the problems) and for some reason, his code works perfectly and mine crashes and tells me that “the call is ambiguous between the following methods or properties”. My code looks just like his…. what am I missing?
Its a good? I Cant start this. Console Application
namespace Kreta.Console.Model
{
public class AwardedStudent
{
public AwardedStudent(string name, int age, int award, bool isOneAward)
{
Name = name;
Age = age;
Award = award;
MonthlyPayment = isOneAward;
SchoolClass = string.Empty;
}