Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- public class Persist
- {
- public static void Main()
- {
- var anon = new
- {
- Name = "Pesho"
- };
- Print(anon);
- }
- private static void Print(dynamic item)
- {
- Console.WriteLine(item.Aasd);
- }
- }
- public class Person
- {
- public Person(string name)
- {
- this.Name = name;
- }
- public string Name { get; set; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement