private CustomAttribute GetLazyAttribute(ICustomAttributeProvider target) { return target.HasCustomAttributes ? target.CustomAttributes.FirstOrDefault(a => a.AttributeType.FullName == "AutoLazy.LazyAttribute") : null; }