From: Kevin W. <kev...@us...> - 2004-12-31 21:56:20
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Property In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4661 Modified Files: FieldGetter.cs FieldSetter.cs IFieldNamingStrategy.cs Log Message: fixing xml comments and letting ReSharper do reformatting Index: FieldGetter.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Property/FieldGetter.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** FieldGetter.cs 23 Oct 2004 15:01:21 -0000 1.2 --- FieldGetter.cs 31 Dec 2004 21:56:10 -0000 1.3 *************** *** 4,7 **** --- 4,8 ---- namespace NHibernate.Property { + /// <summary></summary> public sealed class FieldGetter : IGetter { *************** *** 10,14 **** private readonly string name; ! public FieldGetter(FieldInfo field, System.Type clazz, string name) { this.field = field; --- 11,21 ---- private readonly string name; ! /// <summary> ! /// ! /// </summary> ! /// <param name="field"></param> ! /// <param name="clazz"></param> ! /// <param name="name"></param> ! public FieldGetter( FieldInfo field, System.Type clazz, string name ) { this.field = field; *************** *** 19,29 **** #region IGetter Members ! public object Get(object target) { ! try { ! return field.GetValue(target); } ! catch(Exception e) { throw new PropertyAccessException( e, "could not get a field value by reflection", false, clazz, name ); --- 26,41 ---- #region IGetter Members ! /// <summary> ! /// ! /// </summary> ! /// <param name="target"></param> ! /// <returns></returns> ! public object Get( object target ) { ! try { ! return field.GetValue( target ); } ! catch( Exception e ) { throw new PropertyAccessException( e, "could not get a field value by reflection", false, clazz, name ); *************** *** 31,34 **** --- 43,47 ---- } + /// <summary></summary> public System.Type ReturnType { *************** *** 36,39 **** --- 49,53 ---- } + /// <summary></summary> public string PropertyName { *************** *** 41,44 **** --- 55,59 ---- } + /// <summary></summary> public PropertyInfo Property { *************** *** 48,50 **** #endregion } ! } --- 63,65 ---- #endregion } ! } \ No newline at end of file Index: FieldSetter.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Property/FieldSetter.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** FieldSetter.cs 22 Aug 2004 06:18:54 -0000 1.1 --- FieldSetter.cs 31 Dec 2004 21:56:10 -0000 1.2 *************** *** 4,7 **** --- 4,8 ---- namespace NHibernate.Property { + /// <summary></summary> public sealed class FieldSetter : ISetter { *************** *** 10,14 **** private readonly string name; ! public FieldSetter(FieldInfo field, System.Type clazz, string name) { this.field = field; --- 11,21 ---- private readonly string name; ! /// <summary> ! /// ! /// </summary> ! /// <param name="field"></param> ! /// <param name="clazz"></param> ! /// <param name="name"></param> ! public FieldSetter( FieldInfo field, System.Type clazz, string name ) { this.field = field; *************** *** 19,35 **** #region ISetter Members ! public void Set(object target, object value) { ! try { field.SetValue( target, value ); } ! catch(Exception e) { ! throw new PropertyAccessException(e, "could not set a field value by reflection", true, clazz, name); } } ! public string PropertyName { --- 26,47 ---- #region ISetter Members ! /// <summary> ! /// ! /// </summary> ! /// <param name="target"></param> ! /// <param name="value"></param> ! public void Set( object target, object value ) { ! try { field.SetValue( target, value ); } ! catch( Exception e ) { ! throw new PropertyAccessException( e, "could not set a field value by reflection", true, clazz, name ); } } ! /// <summary></summary> public string PropertyName { *************** *** 37,40 **** --- 49,53 ---- } + /// <summary></summary> public PropertyInfo Property { *************** *** 45,47 **** } ! } --- 58,60 ---- } ! } \ No newline at end of file Index: IFieldNamingStrategy.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Property/IFieldNamingStrategy.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** IFieldNamingStrategy.cs 23 Aug 2004 02:10:06 -0000 1.1 --- IFieldNamingStrategy.cs 31 Dec 2004 21:56:10 -0000 1.2 *************** *** 1,4 **** - using System; - namespace NHibernate.Property { --- 1,2 ---- *************** *** 13,17 **** /// <param name="propertyName">The name of the Property.</param> /// <returns>The name of the Field.</returns> ! string GetFieldName(string propertyName); } ! } --- 11,15 ---- /// <param name="propertyName">The name of the Property.</param> /// <returns>The name of the Field.</returns> ! string GetFieldName( string propertyName ); } ! } \ No newline at end of file |