Apr
16
comment Can you write if ( (x && y) || y || z) { do this;}?
@Rok glad to help
Apr
16
comment Can you write if ( (x && y) || y || z) { do this;}?
@Jcl good idea.
Apr
16
revised Can you write if ( (x && y) || y || z) { do this;}?
added the fiddle source
Apr
16
comment Can you write if ( (x && y) || y || z) { do this;}?
Also - it looks like everyone else is telling you to compile and run it yourself. In case that's not something that's easy for you to do with your setup dotnetfiddle.net/uT7Rqk
Apr
16
answered Can you write if ( (x && y) || y || z) { do this;}?
Apr
8
awarded Revival
Apr
5
awarded Popular Question
Mar
31
awarded javascript
Mar
29
comment How do I get the Type of a generic parameter for a given method
@Matt - Since you actually have a reference to the expression tree with the MethodCallExpression (and not just the MethodInfo) you should be able to write a visitor that will give you what you need. It may not be as simple as comparing equality of the methods, but you haven't said anything to indicate it can't be done.
Mar
28
comment How do I get the Type of a generic parameter for a given method
@Matt - you can push generics pretty far. I honestly doubt that what you're trying to do "impossible" (unless there's a flaw in the logic of how you were thinking about it), but it might not be worth it to implement depending on your purpose. What exactly are you trying to do?
Mar
27
comment How do I get the Type of a generic parameter for a given method
@Matt - [1] Are you calling GetGenericArguments() on the method or the return type? It looks like you're calling it on the return type which is a Task<T> in one case and a Task<Message> in the other? [2] These two methods may not be comparable in the way you are thinking about them. GetEntityById<T> : long -> Task<T> is an "open" generic method definition with an open generic return type whereas GetMessage: long -> Task<Message> is a non-generic method with a closed generic return type. You'd need to have a closed call to GetEntityById for their return types to be equal.
Mar
26
comment whether or not to use sqlite/spatialite on Android with only 29k rows
You may find this helpful: stackoverflow.com/questions/7067798/…
Mar
26
revised How do I get the Type of a generic parameter for a given method
added 3 characters in body
Mar
26
answered How do I get the Type of a generic parameter for a given method
Mar
26
answered whether or not to use sqlite/spatialite on Android with only 29k rows
Mar
19
comment Capture any kind of keystrokes (aka keylogger), preferably c# .net but any kind will do
There's actually a bigger problem with this library - I'll post both on GitHub later this week
Mar
17
comment Capture any kind of keystrokes (aka keylogger), preferably c# .net but any kind will do
Hey - any idea why the key logger app will sometimes get characters in a different order than the app you're typing in (e.g. notepad)? To replicate: run the logger, open notepad, mash keys. Under enough reps you'll see
Mar
14
comment How to serialize an object to generate a list of childs?
@OnlyaCuriousMind A better design would have Y.Att as a bool and would not require any further modification
Mar
11
awarded Notable Question
Mar
10
comment Are more and more questions dismissed, answers downvoted unnecessarily?
@MartinJames - Given the consistent increase of IT practitioners world-wide, does it not seem problematic for you that we are becoming more closed and the most likely response to new users is to alienate them? It seems obvious to me that this is a much bigger deterrent than, (for example), experts exchange's sign up fee was when people started preferring SO ...
1 2 3 4 5