| c# Programming Glossary: aspectinstanceHow to inject an attribute using a PostSharp attribute? http://stackoverflow.com/questions/7851365/how-to-inject-an-attribute-using-a-postsharp-attribute  and should just provide other aspects. public IEnumerable AspectInstance ProvideAspects object targetElement  var targetType Type targetElement.. the DataContract attribute to the type. yield return new AspectInstance targetType introduceDataContractAspect  Add a DataMember attribute.. typeof NotDataMemberAttribute false  yield return new AspectInstance property introduceDataMemberAspect  AttributeUsage AttributeTargets.Property.. 
 |