I asked this on SO and got skewered. I love SO for the answers, but asking a question is fraught with peril. I'm new here, but I'm hopeful y'all will be more forgiving and helpful.
if I:
dotnet new console -f netcoreapp3.1 -n four
add to Program.cs
Console.WriteLine("Namespace: {0}"...
I want to delete a user input if a condition is not met, and keep the Console interface same and intact without using Console.Clear() or goto menu;
I want to delete whatever was entered by the user if a condition is not met. How can I do that?
If I use Console.Clear() or goto menu; the same...
Hi Gents,
I have a specific requirement is to get a valid stream(which will be further operate) from given zip path?
The situation is use a support code snippet to determine given path is xml/zip file(one of these files inside zip is xml which what I want), if it's a xml then easily get a...
The snake head ```0``` does not move anywhere when ```Console.ReadKey()``` happens.
Here is the full code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SimpleSnakeGame_ConsoleApp
{
internal class Program
{...
This simple code gives Exception Handling Error:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace...
Hello, I'm doing a windows form project, in this project, when I subtract the entry date from the end date, I reflect the result to a column named remaining usage. What I want in the database is that this remaining usage decreases by 1 every 24 hours
Hello, I am trying to write a method, that checks if a string is isomorphic and returns true or false. In line 10 in the code posted below, I get a System.OutOfRangeException and I just can't figure out what I am doing false.
public static bool IsIsomorphic(string s, string t)
{...
0
I have this interface base repo with genric type T:
public interface IRepositoryBase<T> where T : class
{
void Add(T obj);
}
and this interfaces heritance from the IRepositoryBase
public interface IClass1Repository : IRepositoryBase<Class1>
{
}
public interface IClass2Repository ...
We have created an app which captures error logs. API's help us do that but when the error is created user must be notified. Can you help us?
Source code:- GitHub - ranadeepmedagone/LogApp
I have my project worked on asp.net mvc
i am using jqxGrid but when i publish my project on IIS the grid does not load the data.
in my js grid i use URL with parameters.
as i have googled i must convert the URL to @url.action, but i don't know how to convert my URL because it has parameters...
I save the changes in the database by clicking on the button, here is the code itself:
else if (comboBox1.SelectedItem == "Работа")
{
label3.Text = "Работа";
string script = "SELECT id, name, Model_preparation_R_Hr, Time_for_preparation_hr, Time_for_post_processing_hr, YZV_work FROM rabota;"...
I'm looking for someone who has a bit of experience with sockets to create a simple server that connects to the client using tcp (the client is already finished), so what you'll have to do is : analyze the client, see what packets it sends over and receive and based on that create the server
Hello, I am new here.
I am looking for help / hints.
I have code to write that counts articles. After entering the code starting with A, do not count the tax, for B it is 8%, for the other codes 23% of the tax (I already have it), but I have a problem summing up these amounts, and the...
Hello :)
I want to ask if someone can help me with the creation of Deal or No Deal, or if you have any tutorials how to make to share them to me.
Thanks!
Am trying to read this csv file and make a header of all the distinct elements in it and put it in a datatable but it only reads the first line
Am trying to read this current csv file and convert it into a truth table that show if an element exists in a row I out 1 if not I put 0 but it only...
i would like to export some datas in a file in a web service. i used this package it exports datas as i defined in the code below :
var variables = new List<Variable>
{
new Variable
{
Label = "Nombre de questionnaires envoyés",
ValueLabels = new Dictionary<double...
Hello i am new to c# and trying to create some simple programs and one of those is a randomized playlist for spotify.
When I run the code I get this error:
"Unhandled exception. System.ArgumentOutOfRangeException: Index must be within the bounds of the List. (Parameter 'index')
at...
Hi,
I have a small WPF application which gets some data (~300 rows) from an API and gets displayed in a DataGrid. Up to this point everything works well. Some Header-columns of the DataGrid have nested textboxes, which should serve as search-boxes. I bound their text to a property in my...
For example, we have a car and it is the Parent class of Models so cars can have many models possible so while updating the car with models car is getting updated but models are not getting added or modified in Entity Framework .
public class Car{
public string name{get;set;}...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.