Skip to content

Instantly share code, notes, and snippets.

@ThomasArdal
Last active August 29, 2015 14:06
Show Gist options
  • Save ThomasArdal/fe2729edad1061c59f10 to your computer and use it in GitHub Desktop.
Save ThomasArdal/fe2729edad1061c59f10 to your computer and use it in GitHub Desktop.
Decompiled Movie class with multiple constructors
public class Movie
{
private readonly string <Title>k__BackingField
private readonly List<string> <Genres>k__BackingField;
private readonly int <Runtime>k__BackingField
public string Title
{
get { return this.<Title>k__BackingField; }
}
public List<string> Genres
{
get { return this.<Genres>k__BackingField; }
}
public int Runtime
{
get { return this.<Runtime>k__BackingField; }
private set { this.<Runtime>k__BackingField = value; }
}
public Movie(string title, List<string> genres)
{
this.<Title>k__BackingField = title;
this.<Genres>k__BackingField = genres;
base();
}
public Movie(string title, List<string> genres, int runtime) : this(title, genres)
{
this.Runtime = runtime;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment