I want all Console.WriteLine to be this way when it is sent to the Console:
[10: 38: 12: 758] - Message typed in WriteLine
Well I've done a part that is this:
private static DateTime data = DateTime.Now;
Console.WriteLine("[{0...
When I read a number, converting it to Int32 , my switch simply understands that it is a default and makes the code described there.
static void Main(string[] args)
{
Jogador j = new Jogador(); //instancia que r...
I was normally programming in VS in "Console" mode when I come across this message:
"A first chance exception of type 'System.FormatException' occurred in mscorlib.dll
An unhandled exception of type 'System.FormatException' occurred in m...
I was able to merge several text files from the same directory into a final text file, grouping the same codes and summing their respective amounts, using the following code (credits to friend Vitor Mendes):
Dictionary<string, int> valor...
I created a join in LINQ to create a List :
(from p in listaProcedimento
join pd in oListaprocedimentodetalhe on p.codigo equals pd.codigoProcedimento into pd1
from pd2 in pd1.DefaultIfEmpty()
select new ProcedimentoDe...
I need to save an image and let's say I have something like:
namespace Projeto.Models
{
public class Usuario
{
public int UserId { get; set; }
public String Nome { get; set; }
public ? Foto { get; set; }
}...
I'm developing a C # Console Application that loads a List and then writes an XML file to the contents of this List.
Class
public class Equipamento
{
public int Id { get; set; }
public string Marca { get; set; }...
using System;
using System.IO;
namespace testando
{
public class pessoa
{
public void Falar(){
Console.WriteLine("Ola meu nome é ninguem");
}
}
class Program
{
public static void Main(strin...