Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6908333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:32:58+00:00 2026-05-27T08:32:58+00:00

I have some problem with PostSharp (I assume that problem can be solved by

  • 0

I have some problem with PostSharp (I assume that problem can be solved by other library).
I have that scenario:

I must get all classes with name containing a word, e.g “Sth”. I have that classes in my project (an example):

SthClass1.cs
SthClassBlabla.cs
SthClass3.cs

and I find that classes using PostSharp:

[assembly: TraceAttribute( AttributeTargetMembers = "Sth*")]

then, is it possible to inject (using aspect, PostSharp (?)) code for each found class ?

example:

 SthClass1 myObj = new SthClass1();
 myObj.ClassMethod1();
 myObj.ClassMethod2();
 myObj.InjectedMethod(); //that method belongs to the aspect
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T08:32:59+00:00Added an answer on May 27, 2026 at 8:32 am

    Yes, you use introduction.

    http://www.sharpcrafters.com/blog/post/PostSharp-Principals-Day-14-e28093-Introducing-members-and-interfaces-Part-1.aspx

    http://www.sharpcrafters.com/blog/post/PostSharp-Principals-Day-15-e28093-Introducing-members-and-interfaces-Part-2.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some interesting problem for an hour.. In my flex project, all width
I have some problem with inserting image when i generate pdf using FPDF library
I have some problem with a method that I have done in c#. I'm
I have some problem while trying to use the schemagen tool from JAXB library
I have some problem with this code. Notice the comments. Why that? struct node
I have some problem with MvcSiteMap. I get NullreferenceException when interating over Model.Nodes because
I have some problem with my JSystem/Java/Eclipse enviromment. I get this error and i
I have some problem to figure out how I can maintain the pipe and
i have some problem with my boost library. i m using freebsd and installed
I have some problem with font-face that are loaded are deform my div height.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.