Business Logic Toolkit for .NET
www.bltoolkit.net
|  Home   |  Download   |  Documentation   |  Discussions   |  License   |

  Source.TypeBuilder.LazyInstanceAttribute.cs

 
using System;

namespace BLToolkit.TypeBuilder
{
    [AttributeUsage(AttributeTargets.Property)]
    public sealed class LazyInstanceAttribute : Attribute
    {
        public LazyInstanceAttribute()
        {
            _isLazy = true;
        }

        public LazyInstanceAttribute(bool isLazy)
        {
            _isLazy = isLazy;
        }

        private bool _isLazy;
        public  bool  IsLazy
        {
            get { return _isLazy;  }
            set { _isLazy = value; }
        }
    }
}
 
© 2010 www.bltoolkit.net
support@bltoolkit.net