Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
test code for issue 2710
using System;
using System.Xml;
using System.Configuration;
using System.Xml.Serialization;
using System.Xml.Schema;
class Clobals
{
public static void Main (string[] args)
{
Settings.Default.WindowPositions = new WindowPositionList ();
Settings.Default.Save ();
Console.WriteLine ("Hello Settings!");
}
}
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized (new Settings ())));
public static Settings Default {
get {
return defaultInstance;
}
}
[global::System.Configuration.UserScopedSettingAttribute ()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute ()]
public WindowPositionList WindowPositions {
get {
return ((WindowPositionList)(this ["WindowPositions"]));
}
set {
this ["WindowPositions"] = value;
}
}
}
[Serializable]
public class WindowPositionList : IXmlSerializable
{
public XmlSchema GetSchema ()
{
return null;
}
public void ReadXml (XmlReader reader)
{
reader.ReadStartElement ("sampleNode");
reader.ReadEndElement ();
}
public void WriteXml (XmlWriter writer)
{
writer.WriteStartElement ("sampleNode");
writer.WriteEndElement ();
}
}
@ArsenShnurkov

This comment has been minimized.

Copy link
Owner Author

commented Nov 30, 2015

<xmp>


  
    
      
    
  
  
  
    
      

  

  


</xmp>
@ArsenShnurkov

This comment has been minimized.

Copy link
Owner Author

commented Nov 30, 2015

the line

<?xml version="1.0" encoding="utf-16"?>

shouldn't be here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.