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

  • SEARCH
  • Home
  • 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 1102307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:09:58+00:00 2026-05-17T01:09:58+00:00

Is there anything in castle that can let me add attributes to a class

  • 0

Is there anything in castle that can let me add attributes to a class on the fly?

I have a dto in a project that I want to use as a data contract in a wcf service. I’d need to add a

[DataContract]

attribute to the class and then

[DataMember]

to each of the properties.

I could just replicate the class in the service layer and then copy the list to a new list of the new type but thats a ballache. There must be something in dynamicproxy or somewhere?

w://

  • 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-17T01:09:58+00:00Added an answer on May 17, 2026 at 1:09 am
    1. Not out of the box
    2. WCF 3.5 or newer does not require attributes on data contracts.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there anything that can make the returned length of the PHP CRC32 function
I'm using Castle ActiveRecord in a warehouse project. I have several tables that get
Is there anything out there that can do what jsFiddle does, but for asp.net
Is there anything that slowed development down on a project you worked on and
Is there anything like the Bloggy gem that engine yard has? Let’s start with
Is there anything around that can read an XSD schema and dynamically create a
Is there anything that I should watch out for when I use classes that
Is there anything that a device can do that the simulator can't? There are
Is there anything built into the core C# libraries that can give me an
Is there anything that can be done to optimize existing SWFs for the oncoming

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.