diff --git a/src/Spring/Spring.Core/Objects/Factory/Attributes/QualifierAnnotationAutowireCandidateResolver.cs b/src/Spring/Spring.Core/Objects/Factory/Attributes/QualifierAnnotationAutowireCandidateResolver.cs index 73d82a09..a71a01b0 100644 --- a/src/Spring/Spring.Core/Objects/Factory/Attributes/QualifierAnnotationAutowireCandidateResolver.cs +++ b/src/Spring/Spring.Core/Objects/Factory/Attributes/QualifierAnnotationAutowireCandidateResolver.cs @@ -34,6 +34,7 @@ namespace Spring.Objects.Factory.Attributes /// against on the field or parameter to be autowired. /// Also supports suggested expression values through a attribute. /// + [Serializable] public class QualifierAnnotationAutowireCandidateResolver : IAutowireCandidateResolver, IObjectFactoryAware { private IObjectFactory _objectFactory; diff --git a/src/Spring/Spring.Core/Objects/ObjectMetadataAttributeAccessor.cs b/src/Spring/Spring.Core/Objects/ObjectMetadataAttributeAccessor.cs index 804ad4e0..27c6ad6d 100644 --- a/src/Spring/Spring.Core/Objects/ObjectMetadataAttributeAccessor.cs +++ b/src/Spring/Spring.Core/Objects/ObjectMetadataAttributeAccessor.cs @@ -18,6 +18,7 @@ #endregion +using System; using Spring.Core; namespace Spring.Objects @@ -27,6 +28,7 @@ namespace Spring.Objects /// holding attributes as objects in order /// to keep track of the definition source. /// + [Serializable] public class ObjectMetadataAttributeAccessor : AttributeAccessorSupport, IObjectMetadataElement { private object _source;