Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
linq jean by Fausto
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { class Person{ public String Name{get; set;} public String LastName{get; set;} public byte Age{get; set;} public String Country {get; set;} public String City {get; set;} } class Student { //public Person person = new Person(); public Person Person {get; set;} public byte Course {get; set;} } public class Program { public static void Main(String[] args) { //Console.WriteLine("Hola Flow {0}", person.Age); var persons = new List<Person>(); persons.AddRange(new Person[]{ new Person { Name = "Fausto", LastName = "Garces", Age = 32, City = "Santo Domingo", Country = "The World" }, new Person { Name = "Jean", LastName = "Peña", Age = 26, City = "Santo Domingo", Country = "Dominican Republic" }, new Person { Name = "Ramon", LastName = "Rodriguez", Age = 236, City = "Santo Domingo", Country = "Dominican Republic" }, new Person { Name = "Manuel", LastName = "Gonzalez", Age = 28, City = "Azua", Country = "Dominican Republic" }, new Person { Name = "Fernando", LastName = "Espinosa", Age = 32, City = "Bani", Country = "Dominican Republic" }, new Person { Name = "Eugenio", LastName = "Duran", Age = 12, City = "Miami FL", Country = "United State" }, }); } } } //create peson classs***** //Create student class**** //Create a main ********** //Create a list of persons(add data)
Show compiler warnings
[
+
]
Show input
Compilation time: 0,15 sec, absolute running time: 0,09 sec, cpu time: 0,09 sec, average memory usage: 12 Mb, average nr of threads: 3
fork mode
|
history
|
discussion