+2010-04-14 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XamlObjectReader.cs
+ XamlSchemaContext.cs
+ XamlObjectReaderException.cs
+ XamlXmlWriterException.cs
+ XamlXmlWriterSettings.cs
+ XamlObjectWriterException.cs
+ XamlParseException.cs
+ XamlInternalException.cs
+ XamlException.cs
+ XamlSchemaException.cs
+ XamlDuplicateMemberException.cs : a handful of corcompare fixes.
+
+
2010-04-14 Atsushi Enomoto <atsushi@ximian.com>
* XamlMember.cs
[Serializable]
public class XamlDuplicateMemberException : XamlException
{
+ public XamlDuplicateMemberException ()
+ : this ("Duplicate members are found in the type")
+ {
+ }
+
public XamlDuplicateMemberException (XamlMember member, XamlType type)
: this (String.Format ("duplicate member '{0}' in type '{1}'", member, type))
{
[Serializable]
public class XamlException : Exception
{
+ public XamlException ()
+ : this ("XAML error")
+ {
+ }
+
public XamlException (string message)
: this (message, null)
{
[Serializable]
public class XamlInternalException : XamlException
{
+ public XamlInternalException ()
+ : this ("XAML internal error")
+ {
+ }
+
public XamlInternalException (string message)
: this (message, null)
{
Stack<IEnumerator<XamlMember>> members_stack = new Stack<IEnumerator<XamlMember>> ();
IEnumerator<NamespaceDeclaration> namespaces;
XamlNodeType node_type = XamlNodeType.None;
- bool is_eof, is_disposed;
+ bool is_eof;
+
+ public object Instance {
+ get { return instance; }
+ }
public override bool IsEof {
get { return is_eof; }
public override object Value {
get { return NodeType == XamlNodeType.Value ? objects.Peek () : null; }
}
-
- protected override void Dispose (bool disposing)
- {
- is_disposed = true;
- }
public override bool Read ()
{
- if (is_disposed)
+ if (IsDisposed)
throw new ObjectDisposedException ("reader");
if (IsEof)
return false;
[Serializable]
public class XamlObjectReaderException : XamlException
{
+ public XamlObjectReaderException ()
+ : this ("XAML object reader error")
+ {
+ }
+
public XamlObjectReaderException (string message)
: this (message, null)
{
[Serializable]
public class XamlObjectWriterException : XamlException
{
+ public XamlObjectWriterException ()
+ : this ("XAML object writer error")
+ {
+ }
+
public XamlObjectWriterException (string message)
: this (message, null)
{
[Serializable]
public class XamlParseException : XamlException
{
+ public XamlParseException ()
+ : this ("XAML parse error")
+ {
+ }
+
public XamlParseException (string message)
: this (message, null)
{
// It should be released at finalizer.
public class XamlSchemaContext
{
+ public XamlSchemaContext ()
+ : this (null, null)
+ {
+ }
+
public XamlSchemaContext (IEnumerable<Assembly> referenceAssemblies)
: this (referenceAssemblies, null)
{
[Serializable]
public class XamlSchemaException : XamlException
{
+ public XamlSchemaException ()
+ : this ("XAML schema error")
+ {
+ }
+
public XamlSchemaException (string message)
: this (message, null)
{
[Serializable]
public class XamlXmlWriterException : XamlException
{
+ public XamlXmlWriterException ()
+ : this ("XAML writer error")
+ {
+ }
+
public XamlXmlWriterException (string message)
: this (message, null)
{
{
public class XamlXmlWriterSettings : XamlWriterSettings
{
+ public XamlXmlWriterSettings ()
+ {
+ }
+
+ XamlXmlWriterSettings (XamlXmlWriterSettings other)
+ : base (other)
+ {
+ AssumeValidInput = other.AssumeValidInput;
+ CloseOutput = other.CloseOutput;
+ }
+
public bool AssumeValidInput { get; set; }
public bool CloseOutput { get; set; }
+
+ public XamlXmlWriterSettings Copy ()
+ {
+ return new XamlXmlWriterSettings (this);
+ }
}
}