Ha. Cause there's no getter. I get it. I think?
84 0 ReplyI get it.
No you don’t; there’s no getter.
66 0 ReplyOh, now I get it.
Wait...
28 0 Reply
It’s also an inside Joke
23 0 ReplyAnd the Joker gets it, but you don’t.
2 0 Reply
Upon reflection, I do get the joke now.
68 0 ReplyThis one gets it
6 0 Reply
They don't call me AbstractJokerAdapterFactoryProxy for nothin'
46 0 ReplyWhere are your gods now?
public static Joke getTheJoke(Meme yourMeme) { Field jokeField = Meme.class.getDeclaredField("joke"); jokeField.setAccessible(true); return (Joke) jokeField.get(yourMeme); }
36 3 ReplyIs it Java? It looked like
Microsoft JavaC# to me...public static void Main(string[] args) { var meme = new Meme(); var joke = GetTheJoke(meme); } public static Joke GetTheJoke(Meme theMeme) { var memeType = typeof(Meme); var jokeField = memeType.GetField("Joke", BindingFlags.NonPublic | BindingFlags.Instance); return (Joke)jokeField.GetValue(theMeme); }
16 0 ReplyThere isn't an unnecessary level of capitalization; seems to be regular Java with Allman braces.
4 0 ReplyFrankly it's been a while since I wrote either one. I just assumed Java because of the naming convention, and I didn't see anything I took as obviously un-Java in the class definition
4 1 ReplyPermanently Deleted
2 0 ReplyBecause C# is a Java clone
2 0 ReplyIf you have to cast your joke it isn't funny?
1 0 Reply
public Joke Joke { private get; set; }
32 0 Replyi hate this programming pattern with a passion.
21 2 ReplySetters and Getters?
26 0 Replyyes.
6 1 ReplyWhere getter?
3 0 Reply
Java?
5 1 Reply
Is it possible to get the joke at runtime using the spectre exploit?
13 0 ReplyNot required. Looks like Java, just use reflection.
5 0 Reply
Stop making private jokes and start posting them publicly. We wanna laugh too, ya selfish bastid.
7 0 Replythrow new SameJokeException();
5 0 Replypublic Joke Joke { get; private set; }
2 0 Replynow i get it, do i?
1 0 Reply