Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. [DataContract]
  2. public class Setting : ConfigurationElement, ICloneable
  3. {
  4.  
  5. [DataMember]
  6. [ConfigurationProperty("type")]
  7. public string Type
  8. {
  9. get { return (string)this["type"]; }
  10. set { this["type"] = value; }
  11. }
  12. }
  13.  
  14. "Type 'Imaging.Setting' cannot inherit from a type that is not marked with DataContractAttribute or SerializableAttribute. Consider marking the base type 'System.Configuration.ConfigurationElement' with DataContractAttribute or SerializableAttribute, or removing them from the derived type."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement