Is there any way to generate an implementation file for UWP that uses [DataContract]
and [DataMember]
for serialization?
Here is a snippet of the way I would like to see the generated file appear as I have manually modified this code and got it to work:
[DataContract]
[RemObjects.SDK.Remotable(ActivatorClass=typeof(Foo_Activator))]
[System.Reflection.ObfuscationAttribute(Exclude=true)]
public partial class Foo: RemObjects.SDK.Types.ComplexType {
private int @__OID;
private string @__StringCode
[DataMember]
public virtual int OID {
get {
return @__OID;
}
set {
@__OID = value;
this.TriggerPropertyChanged("OID");
}
}
[DataMember]
//The following line was from the original file. The project does work if it is not commented out.
//[RemObjects.SDK.StreamAs(StreamingFormat.AnsiString)]
public virtual string StringCode {
get {
return @__StringCode;
}
set {
@__StringCode = value;
this.TriggerPropertyChanged("StringCode");
}
}
//And whatever else goes here
}
It seems like the [DataMember]
attribute is required even for non-string properties. In this case it didn’t make a difference if Ansi or Utf8 strings were used.
Also is there any more of a roadmap or release date for the .NETStandard as mentioned here?