using System.Collections.Generic;
using System.Globalization;
public static void Main()
var time = new TimeSpan(1,20,0);
var a = time.ToString("G");
Console.WriteLine(resultado("c"));
List<string> nombres = new List<string>
"Hola", "SI", null, string.Empty, "a","b","asdasdasdasdasdasd","seba"
var filtrados = nombres.Where(x=> x.ToUpper().Trim()=="SEBA");
string todo = "excel,pdf,zip,excel-zisp";
var tieneExcelZip = todo.Contains("excel-zip");
Console.WriteLine(tieneExcelZip);
Console.WriteLine(Guid.NewGuid());
DateTime now = DateTime.Now;
DateTime dia1 = new DateTime(2021,9,1,8,0,0);
DateTime dia2 = new DateTime(2021,9,2,18,0,0);
Console.WriteLine(dia1.Day);
Console.WriteLine(dia2.Day);
Console.WriteLine(" ACA 1");
diferencial = dia2.Day - dia1.Day;
else if (dia2.Month > dia1.Month)
Console.WriteLine("ACA 2");
diferencial = 1 + dia2.Day - 1;
Console.WriteLine(diferencial);
TimeSpan theoric = dia2 - dia1.AddDays(diferencial);
Console.WriteLine(theoric);
int lastDayMonth = new DateTime(now.Year, now.Month + 1, 1).AddSeconds(-1).Day;
public static string Mensaje()
public static bool resultado(string texto){
public static string Capitalize( string text) => text switch
null => throw new ArgumentNullException(nameof(text)),
"" => throw new ArgumentException($"{nameof(text)} cannot be empty"),
_ => text.First().ToString().ToUpper() + text[1..]