My method looks like:
public string DoObjectProperties<T>(T obj, string text)
{
}
Now from within the method, I need to get the string value of the class name that i pass into the method's 'obj' parameter.
So if I pass in the User object, I need the text 'user'.
To get the properties I am using: typeof(T).GetProperties()
How can I get the classes name?
In a web application, I want to sprinkle events in places and then let others, who want to extend the functionality, add subscribers to those events.
So something like:
Users.PreUserUpdated();
Users.Update(user);
Users.OnUserUpdated();
If someone now wanted to subscribe to the pre or on user updated events, where would they do so? global.asax before application startup?
I have a method like:
public T Get<T>(string key)
{
}
Now say I want to return "hello" if the type is a string, and 110011 if it is type int.
how can I do that?
typeof(T) doesn't seem to work.
I ideally want to do a switch statement, and return something based on the Type of the generic (string/int/long/etc).
Is this possible?
in pylons, is it possible to loop through all the controllers and their actions?
I want to create a javascript object that has all the controllers and their actions
if hovering over an element injects something into the DOM, can I still reference it?
Or do I have to use the live plugin?
i' using jqeury 1.3.2
i.e. can I do $("#someItem").attr("src", "htt..."); on it?
I am trying to do it, but I think its not working b/c its a newly added item to the DOM.
So windows premium/standard/ultimate, are these versions all ok for a development computer?
ie. do any prevent installations of things like sql server, vs.net,etc?
If I obfuscated python code, would it provide the same level of 'security' as c#/java obfuscating?
i.e it makes things a little hard, but really you can still reverse engineer if you really wanted to, its just a bit cryptic.