juflo
05-16-2008, 02:23 PM
Hi all
I have a method which is something like :
bool TryGetValue<T>(object key, out T value)
When it is used with TryGetValue<int> or TryGetValue<double> (I'm sure there are other value types with the same behaviour), the value returned in the "out value" parameter is completely random when using a proxified object, whereas the result is good when using good old instanciation (IMyClassInterface instance = new MyClass())
I found this post : http://forum.springframework.net/showthread.php?t=262&highlight=parameter+method+signature which seems to say that these ref/out parameters are supported, but it may not be the case.
Does anyone can confirm this or not ?
Thanks.
I have a method which is something like :
bool TryGetValue<T>(object key, out T value)
When it is used with TryGetValue<int> or TryGetValue<double> (I'm sure there are other value types with the same behaviour), the value returned in the "out value" parameter is completely random when using a proxified object, whereas the result is good when using good old instanciation (IMyClassInterface instance = new MyClass())
I found this post : http://forum.springframework.net/showthread.php?t=262&highlight=parameter+method+signature which seems to say that these ref/out parameters are supported, but it may not be the case.
Does anyone can confirm this or not ?
Thanks.