Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Aop/Aop/Framework/DynamicProxy
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv16667
Modified Files:
AbstractAopProxyTypeBuilder.cs
Log Message:
Refactored Stan D. contribution [SPRNET-606]
Index: AbstractAopProxyTypeBuilder.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Aop/Aop/Framework/DynamicProxy/AbstractAopProxyTypeBuilder.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** AbstractAopProxyTypeBuilder.cs 11 Oct 2007 05:57:15 -0000 1.4
--- AbstractAopProxyTypeBuilder.cs 3 Dec 2007 09:06:58 -0000 1.5
***************
*** 41,68 ****
AbstractProxyTypeBuilder, IAopProxyTypeGenerator
{
- #region Fields
-
- private readonly IList _typeAttributesToExclude;
-
- #endregion
-
- #region Constructors
-
- /// <summary>
- /// Initializes a new instance of the <see cref="AbstractAopProxyTypeBuilder"/> class.
- /// </summary>
- protected AbstractAopProxyTypeBuilder()
- : base()
- {
- _typeAttributesToExclude = new ArrayList(
- new Type[] {typeof (SerializableAttribute)});
- foreach (Type attributeType in base.TypeAttributesToExclude)
- {
- _typeAttributesToExclude.Add(attributeType);
- }
- }
-
- #endregion
-
#region IProxyTypeGenerator Members
--- 41,44 ----
***************
*** 112,116 ****
while (i < attrs.Count)
{
! if (attrs[i] is SerializableAttribute)
{
attrs.RemoveAt(i);
--- 88,92 ----
while (i < attrs.Count)
{
! if (IsAttributeMatchingType(attrs[i], typeof(SerializableAttribute)))
{
attrs.RemoveAt(i);
***************
*** 127,143 ****
#endregion
-
- #region Protected Properties
-
- /// <summary>
- /// Gets the type of attributes to exclude form the proxy
- /// </summary>
- /// <value>The type of attributes to exclude from the proxy</value>
- protected override IList TypeAttributesToExclude
- {
- get { return _typeAttributesToExclude; }
- }
-
- #endregion
}
}
\ No newline at end of file
--- 103,106 ----
|