Skip to content

Instantly share code, notes, and snippets.

@cosminpopescu14
Last active January 27, 2019 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cosminpopescu14/78eabcf0ed5191a3948ec6038c5d16a6 to your computer and use it in GitHub Desktop.
Save cosminpopescu14/78eabcf0ed5191a3948ec6038c5d16a6 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
namespace ConsoleApp28
{
public class Intrebare
{
public string intrebare;
public List<string> raspunsuri = new List<string>();
}
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
Intrebare intrebare = new Intrebare();
intrebare.intrebare = "ce faci ?";
intrebare.raspunsuri.AddRange(new string[] { "bine", "super" });
Console.WriteLine(intrebare.raspunsuri[0]);
Console.ReadLine();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment