From: Sergey K. <jus...@us...> - 2005-03-26 13:24:48
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1460/src/NHibernate/Util Modified Files: ReflectHelper.cs Log Message: Ported property-ref attribute implementation from Hibernate 2.1 Index: ReflectHelper.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Util/ReflectHelper.cs,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** ReflectHelper.cs 14 Mar 2005 14:37:59 -0000 1.24 --- ReflectHelper.cs 26 Mar 2005 13:24:37 -0000 1.25 *************** *** 134,137 **** --- 134,148 ---- /// <summary> + /// Get the <see cref="System.Type" /> for the named property of a type. + /// </summary> + /// <param name="theClass">The <see cref="System.Type"/> to find the property in.</param> + /// <param name="name">The name of the property/field to find in the class.</param> + /// <returns>The <see cref="System.Type" /> for the named property.</returns> + public static System.Type ReflectedPropertyClass( System.Type theClass, string name) + { + return GetGetter(theClass, name).ReturnType; + } + + /// <summary> /// Returns a reference to the Type. /// </summary> |