Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Expand All @@ -9,7 +9,11 @@
// Please see MilCodeGen.html for more information.
//

using MS.Internal;
using System.ComponentModel;
using System.Globalization;
using System.Windows.Markup;
using System.Windows.Converters;

namespace System.Windows.Converters
{
Expand Down Expand Up @@ -39,7 +43,7 @@ public override bool CanConvertToString(object value, IValueSerializerContext co
}

return true;
}
}

/// <summary>
/// Converts a string into a Int32Rect.
Expand All @@ -54,7 +58,7 @@ public override object ConvertFromString(string value, IValueSerializerContext c
{
return base.ConvertFromString( value, context );
}
}
}

/// <summary>
/// Converts the value into a string.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Expand All @@ -9,7 +9,11 @@
// Please see MilCodeGen.html for more information.
//

using MS.Internal;
using System.ComponentModel;
using System.Globalization;
using System.Windows.Markup;
using System.Windows.Converters;

namespace System.Windows.Converters
{
Expand Down Expand Up @@ -39,7 +43,7 @@ public override bool CanConvertToString(object value, IValueSerializerContext co
}

return true;
}
}

/// <summary>
/// Converts a string into a Point.
Expand All @@ -54,7 +58,7 @@ public override object ConvertFromString(string value, IValueSerializerContext c
{
return base.ConvertFromString( value, context );
}
}
}

/// <summary>
/// Converts the value into a string.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Expand All @@ -9,7 +9,11 @@
// Please see MilCodeGen.html for more information.
//

using MS.Internal;
using System.ComponentModel;
using System.Globalization;
using System.Windows.Markup;
using System.Windows.Converters;

namespace System.Windows.Converters
{
Expand Down Expand Up @@ -39,7 +43,7 @@ public override bool CanConvertToString(object value, IValueSerializerContext co
}

return true;
}
}

/// <summary>
/// Converts a string into a Rect.
Expand All @@ -54,7 +58,7 @@ public override object ConvertFromString(string value, IValueSerializerContext c
{
return base.ConvertFromString( value, context );
}
}
}

/// <summary>
/// Converts the value into a string.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Expand All @@ -9,7 +9,11 @@
// Please see MilCodeGen.html for more information.
//

using MS.Internal;
using System.ComponentModel;
using System.Globalization;
using System.Windows.Markup;
using System.Windows.Converters;

namespace System.Windows.Converters
{
Expand Down Expand Up @@ -39,7 +43,7 @@ public override bool CanConvertToString(object value, IValueSerializerContext co
}

return true;
}
}

/// <summary>
/// Converts a string into a Size.
Expand All @@ -54,7 +58,7 @@ public override object ConvertFromString(string value, IValueSerializerContext c
{
return base.ConvertFromString( value, context );
}
}
}

/// <summary>
/// Converts the value into a string.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Expand All @@ -9,7 +9,11 @@
// Please see MilCodeGen.html for more information.
//

using MS.Internal;
using System.ComponentModel;
using System.Globalization;
using System.Windows.Markup;
using System.Windows.Converters;

namespace System.Windows.Converters
{
Expand Down Expand Up @@ -39,7 +43,7 @@ public override bool CanConvertToString(object value, IValueSerializerContext co
}

return true;
}
}

/// <summary>
/// Converts a string into a Vector.
Expand All @@ -54,7 +58,7 @@ public override object ConvertFromString(string value, IValueSerializerContext c
{
return base.ConvertFromString( value, context );
}
}
}

/// <summary>
/// Converts the value into a string.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@

using MS.Internal;
using System.ComponentModel;
using System.Globalization;
using System.Windows.Markup;
using System.Windows.Converters;
// These types are aliased to match the unamanaged names used in interop

namespace System.Windows
{

[Serializable]
[TypeConverter(typeof(Int32RectConverter))]
[ValueSerializer(typeof(Int32RectValueSerializer))] // Used by MarkupWriter
Expand Down Expand Up @@ -216,7 +217,8 @@ public int X
{
_x = value;
}
}

}

/// <summary>
/// Y - int. Default value is 0.
Expand All @@ -232,7 +234,8 @@ public int Y
{
_y = value;
}
}

}

/// <summary>
/// Width - int. Default value is 0.
Expand All @@ -248,7 +251,8 @@ public int Width
{
_width = value;
}
}

}

/// <summary>
/// Height - int. Default value is 0.
Expand All @@ -264,7 +268,8 @@ public int Height
{
_height = value;
}
}

}

#endregion Public Properties

Expand Down Expand Up @@ -317,6 +322,7 @@ public int Height
/// </returns>
public override string ToString()
{

// Delegate to the internal method which implements all ToString calls.
return ConvertToString(null /* format string */, null /* format provider */);
}
Expand All @@ -330,6 +336,7 @@ public override string ToString()
/// </returns>
public string ToString(IFormatProvider provider)
{

// Delegate to the internal method which implements all ToString calls.
return ConvertToString(null /* format string */, provider);
}
Expand All @@ -345,6 +352,7 @@ public string ToString(IFormatProvider provider)
/// </returns>
string IFormattable.ToString(string format, IFormatProvider provider)
{

// Delegate to the internal method which implements all ToString calls.
return ConvertToString(format, provider);
}
Expand Down Expand Up @@ -406,6 +414,9 @@ internal string ConvertToString(string format, IFormatProvider provider)
internal int _width;
internal int _height;




#endregion Internal Fields


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Expand All @@ -9,8 +9,11 @@
// Please see MilCodeGen.html for more information.
//

using MS.Internal;
using System.ComponentModel;
using System.Globalization;
using System.Windows.Markup;
using System.Windows.Converters;

namespace System.Windows
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@

using MS.Internal;
using System.ComponentModel;
using System.Globalization;
using System.Windows.Markup;
using System.Windows.Converters;
// These types are aliased to match the unamanaged names used in interop

namespace System.Windows
{

[Serializable]
[TypeConverter(typeof(PointConverter))]
[ValueSerializer(typeof(PointValueSerializer))] // Used by MarkupWriter
Expand Down Expand Up @@ -185,7 +186,8 @@ public double X
{
_x = value;
}
}

}

/// <summary>
/// Y - double. Default value is 0.
Expand All @@ -201,7 +203,8 @@ public double Y
{
_y = value;
}
}

}

#endregion Public Properties

Expand Down Expand Up @@ -254,6 +257,7 @@ public double Y
/// </returns>
public override string ToString()
{

// Delegate to the internal method which implements all ToString calls.
return ConvertToString(null /* format string */, null /* format provider */);
}
Expand All @@ -267,6 +271,7 @@ public override string ToString()
/// </returns>
public string ToString(IFormatProvider provider)
{

// Delegate to the internal method which implements all ToString calls.
return ConvertToString(null /* format string */, provider);
}
Expand All @@ -282,6 +287,7 @@ public string ToString(IFormatProvider provider)
/// </returns>
string IFormattable.ToString(string format, IFormatProvider provider)
{

// Delegate to the internal method which implements all ToString calls.
return ConvertToString(format, provider);
}
Expand Down Expand Up @@ -334,6 +340,9 @@ internal string ConvertToString(string format, IFormatProvider provider)
internal double _x;
internal double _y;




#endregion Internal Fields


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Expand All @@ -9,8 +9,11 @@
// Please see MilCodeGen.html for more information.
//

using MS.Internal;
using System.ComponentModel;
using System.Globalization;
using System.Windows.Markup;
using System.Windows.Converters;

namespace System.Windows
{
Expand Down
Loading