Update of /cvsroot/dotnetmock/dotnetmock/DotNetMock/Dynamic/Generate
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30794/DotNetMock/Dynamic/Generate
Modified Files:
ClassGenerator.cs
Log Message:
- Added remaining XML docs to DotNetMock project
- Removed 'using' directives
- Minor coding stds refactorings
- Removed Apache license from Predicate classes.
Index: ClassGenerator.cs
===================================================================
RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/Dynamic/Generate/ClassGenerator.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** ClassGenerator.cs 29 Jul 2004 16:48:21 -0000 1.6
--- ClassGenerator.cs 1 Jan 2005 21:13:51 -0000 1.7
***************
*** 3,14 ****
using System.Reflection;
using System.Reflection.Emit;
- using System.Security;
namespace DotNetMock.Dynamic.Generate
{
public class ClassGenerator
{
private static IDictionary boxingOpCodes;
!
public object Generate(Type type, IDynamicMock mock)
{
--- 3,21 ----
using System.Reflection;
using System.Reflection.Emit;
namespace DotNetMock.Dynamic.Generate
{
+ /// <summary>
+ /// Dynamic Mock object generation engine. Generates the dynamic proxies for dynamic mock objects.
+ /// </summary>
public class ClassGenerator
{
private static IDictionary boxingOpCodes;
! /// <summary>
! /// Generates a proxy object for the input type, using the input <see cref="IDynamicMock"/> implementation.
! /// </summary>
! /// <param name="type"><see cref="System.Type"/> to generate proxy object for.</param>
! /// <param name="mock"><see cref="IDynamicMock"/> object containing the parameters for the proxy object</param>
! /// <returns>Generated proxy object</returns>
public object Generate(Type type, IDynamicMock mock)
{
***************
*** 146,150 ****
il.Emit(OpCodes.Ret);
}
!
public OpCode GetBoxingOpCode( Type currentType )
{
--- 153,161 ----
il.Emit(OpCodes.Ret);
}
! /// <summary>
! /// Returns the IL <see cref="System.Reflection.Emit.OpCode"/> for the input type.
! /// </summary>
! /// <param name="currentType">Type to return op code for.</param>
! /// <returns>Op Code for input type.</returns>
public OpCode GetBoxingOpCode( Type currentType )
{
***************
*** 166,171 ****
}
! OpCode opCode;
! object opCodeObject = boxingOpCodes[currentType];
if (opCodeObject != null)
--- 177,182 ----
}
! OpCode opCode;
! object opCodeObject = boxingOpCodes[currentType];
if (opCodeObject != null)
***************
*** 182,186 ****
}
! return opCode;
}
--- 193,197 ----
}
! return opCode;
}
|