-
as seen on Programmers
- Search for 'Programmers'
I've noticed when dealing with Expressions or Expression Trees I'm using reflection a lot to set and get values in properties and what have you. It has occurred to me that the use of reflection seems to be getting more and more common. Things like DataAnotations for validation, Attribute heavy ORMs…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Taking following association declaration as an example:
class Post
has_many :comments
end
Just by declaring the has_many :comments, ActiveRecord adds several methods of which I am particularly interested in comments which returns array of comments. I browsed through the code and following seems…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
What is the difference between normal reflection and the reflection that can be done with lambda expressions such as this (taken form build your own MVVM):
public void NotifyOfPropertyChange<TProperty>(Expression<Func<TProperty>> property)
{
var lambda = (LambdaExpression)property;
…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi, I'm using a class which applies a visual reflection-effect to defined movieclips.
I use a reflection-class from here:
link to source.
It works like a charm except when I apply a rotation to the movieclip.
In my case the reflection is still visible but only a part of it.
What am I doing wrong?…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have an issue with a semantic gap between the CLR and System.Reflection.
System.Reflection does not (AFAIK) support reflecting on global methods in an assembly. At the assembly level, I must start with the root types.
My compiler can produce assemblies with global methods, and my standard bootstrap…
>>> More