Ha. Cause there's no getter. I get it. I think?
83 0 ReplyI get it.
No you don’t; there’s no getter.
65 0 ReplyOh, now I get it.
Wait...
29 0 Reply
It’s also an inside Joke
22 0 Reply
Upon reflection, I do get the joke now.
69 0 ReplyThis one gets it
6 0 Reply
They don't call me AbstractJokerAdapterFactoryProxy for nothin'
45 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 0 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); }
14 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 0 ReplyThere isn't an unnecessary level of capitalization; seems to be regular Java with Allman braces.
4 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.
18 0 ReplySetters and Getters?
25 0 Replyyes.
5 0 ReplyWhere getter?
2 0 Reply
Is it possible to get the joke at runtime using the spectre exploit?
14 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.
6 0 Replythrow new SameJokeException();
5 0 Replynow i get it, do i?
1 0 Reply