0

I have set my contract name value

    [DataContract(Name = "ObjectTypes", Namespace = ""), KnownType(typeof(BaseFunctions))]

How do I get the value of the name attribute at runtime?

Thank you.

FirstByte
  • 563
  • 1
  • 6
  • 20
  • Can you explain bit more in context. Where you want to do this ? At server side or client side? Why you want to do this ? – Chetan Oct 12 '17 at 19:33
  • Try this one: https://stackoverflow.com/questions/2329738/how-to-get-a-custom-attribute-from-object-instance-in-c-sharp – Stefan Oct 12 '17 at 19:39
  • On server side. I have some generic functions that need this value. – FirstByte Oct 16 '17 at 14:40

0 Answers0