@@ -24,7 +24,9 @@ public class UserPublicView
2424 public ArrayOfPost Posts { get ; set ; }
2525 }
2626
27+ #if ! NETCORE
2728 [ Serializable ]
29+ #endif
2830 [ DataContract ( Namespace = "http://schemas.ddnglobal.com/types/" ) ]
2931 public class UserPublicProfile
3032 {
@@ -156,7 +158,9 @@ public string AboutMe
156158 }
157159 }
158160
161+ #if ! NETCORE
159162 [ Serializable ]
163+ #endif
160164 [ CollectionDataContract ( Namespace = "http://schemas.ddnglobal.com/types/" , ItemName = "String" ) ]
161165 public class ArrayOfString : List < string >
162166 {
@@ -169,7 +173,9 @@ public ArrayOfString(IEnumerable<string> collection) : base(collection) { }
169173 //public ArrayOfString(params string[] ids) : base(ids) { }
170174 }
171175
176+ #if ! NETCORE
172177 [ Serializable ]
178+ #endif
173179 [ DataContract ( Namespace = "http://schemas.ddnglobal.com/types/" ) ]
174180 public class UserSearchResult
175181 : IHasId < Guid >
@@ -214,7 +220,9 @@ public class UserSearchResult
214220 public DateTime ActivationDate { get ; set ; }
215221 }
216222
223+ #if ! NETCORE
217224 [ Serializable ]
225+ #endif
218226 [ CollectionDataContract ( Namespace = "http://schemas.ddnglobal.com/types/" , ItemName = "Post" ) ]
219227 public class ArrayOfPost : List < Post >
220228 {
@@ -224,7 +232,9 @@ public ArrayOfPost(IEnumerable<Post> collection) : base(collection) { }
224232 public static ArrayOfPost New ( params Post [ ] ids ) { return new ArrayOfPost ( ids ) ; }
225233 }
226234
235+ #if ! NETCORE
227236 [ Serializable ]
237+ #endif
228238 [ DataContract ( Namespace = "http://schemas.ddnglobal.com/types/" ) ]
229239 public class Post
230240 : IHasStringId
@@ -677,7 +687,9 @@ public string LinkUrl
677687 }
678688
679689 [ DataContract ( Namespace = "http://schemas.ddnglobal.com/types/" ) ]
690+ #if ! NETCORE
680691 [ Serializable ]
692+ #endif
681693 public class ImageAsset
682694 {
683695 [ DataMember ( EmitDefaultValue = false ) ]
0 commit comments