Mar
25
awarded Announcer
Mar
24
awarded Supporter
Mar
13
comment How to retrieve a row's position within a DynamoDB global secondary index and the total?
Oooh, I like that query for getting players around him, that's very nice altogether. The other bit though, yeah, I just can't understand why that's not available as part of the index. One would assume that sort of thing would be available with the index, both that and the number within the index. :/
Mar
12
asked How to retrieve a row's position within a DynamoDB global secondary index and the total?
Mar
11
comment How to get the MethodInfo of a function of a class, without string comparison
I'd have that opinion about a huge amount of reflection in areas of C#, and if you hop onto IRC, or similar, I've found you get hammered for wanting to do that sort of thing. With Python, the docs were much better, and the community was a lot more open to that type of coding.
Mar
11
comment How to get the MethodInfo of a function of a class, without string comparison
Perfect. I re-edited my question when I realised I wanted/needed MethodInfo rather than MemberInfo, but your answer is still correct (nearly). What I've used is private MethodInfo GetMethodInfo(Expression<Action> expr) { return ( (MethodCallExpression)expr.Body ).Method; } which is your answer, along with Ann's suggestion. Many thanks!
Mar
11
accepted How to get the MethodInfo of a function of a class, without string comparison
Mar
11
revised How to get the MethodInfo of a function of a class, without string comparison
I asked about getting MemberInfo, but what I actually want is MethodInfo
Mar
11
asked How to get the MethodInfo of a function of a class, without string comparison
Feb
27
awarded Student
Feb
27
asked Prevent bluetooth from auto connecting to certain devices
Feb
26
comment How to get the FieldInfo of a field from the value
Helpful, and potentially the right answer for some, but #6 isn't an option for me at the moment, but I will use this method when it eventually is. Thanks.
Feb
26
comment How to get the FieldInfo of a field from the value
Beautiful, that works perfectly for me, thank you!
Feb
26
accepted How to get the FieldInfo of a field from the value
Feb
26
asked How to get the FieldInfo of a field from the value
Feb
25
comment Unity meta files and git branching
Deleting the meta files in bulk isn't really an option either, as it can cause issues with linkages that have been set up. IE. if you've a prefab in that Internal folder which then has a button connected within it, deleting the meta information from that can then (sometimes) disconnect that. To be honest, since I made this post, we've become more comfortable in general with Unity, and I don't actually think there's a perfect solution with Source Control. Just be careful, know what you're doing, and don't do huge merges / stay away from master from too long without syncing up.
Feb
25
comment Unity meta files and git branching
All of those settings are our settings, and our gitignore is the base we used, when we set the project up. So, none of this actually helps the situation I'm in. Also, scenes are nothing to do with what I'm talking about. Think of this, you're on a branch, and create the folder Editor/Internal, and work there, but at the same time, coincidentally, someone else created Editor/Internal, on master, two different Internal.meta files will be created, and as far as I'm aware, I can't tell a good way about which to choose, or how to merge properly.
Feb
22
awarded Popular Question
Feb
19
comment Any way to intercept access to internal Dictionary in C# with DynamicProxy?
Awesome! That's exactly what I was looking for. Honestly, discovering the DynamicProxy libraries and getting to grips with them has been just so, so good. It just takes reflection in C# to the next level. Thanks Cyril.
Feb
19
accepted Any way to intercept access to internal Dictionary in C# with DynamicProxy?
1 2 3 4 5