Skip to content

Commit 4fdf462

Browse files
Run MilCodeGen
1 parent b1b09e5 commit 4fdf462

File tree

283 files changed

+2644
-947
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

283 files changed

+2644
-947
lines changed

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/ContentElement.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,8 @@ public void RemoveHandler(RoutedEvent routedEvent, Delegate handler)
606606
EventHandlersStoreField.ClearValue(this);
607607
WriteFlag(CoreFlags.ExistsEventHandlersStore, false);
608608
}
609-
}
609+
610+
}
610611
}
611612

612613
/// <summary>

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/TextDecoration.cs

+8-2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434

3535
namespace System.Windows
3636
{
37+
38+
39+
3740
sealed partial class TextDecoration : Animatable
3841
{
3942
//------------------------------------------------------
@@ -278,8 +281,8 @@ static TextDecoration()
278281
// We check our static default fields which are of type Freezable
279282
// to make sure that they are not mutable, otherwise we will throw
280283
// if these get touched by more than one thread in the lifetime
281-
// of your app. (Windows OS
282-
284+
// of your app.
285+
//
283286

284287

285288
// Initializations
@@ -331,6 +334,9 @@ static TextDecoration()
331334
/* coerceValueCallback */ null);
332335
}
333336

337+
338+
334339
#endregion Constructors
340+
335341
}
336342
}

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/TextDecorationCollection.cs

+32-17
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
using System.Windows.Converters;
2727
using MS.Internal.Collections;
2828
using MS.Utility;
29-
using SR = MS.Internal.PresentationCore.SR;
29+
using SR=MS.Internal.PresentationCore.SR;
3030
// These types are aliased to match the unamanaged names used in interop
3131
using BOOL = System.UInt32;
3232
using WORD = System.UInt16;
@@ -214,7 +214,7 @@ internal void RemoveAtWithoutFiringPublicEvents(int index)
214214
{
215215
WritePreamble();
216216

217-
TextDecoration oldValue = _collection[index];
217+
TextDecoration oldValue = _collection[ index ];
218218

219219
OnFreezablePropertyChanged(oldValue, null);
220220

@@ -249,12 +249,15 @@ public TextDecoration this[int index]
249249

250250
WritePreamble();
251251

252-
if (!Object.ReferenceEquals(_collection[index], value))
252+
if (!Object.ReferenceEquals(_collection[ index ], value))
253253
{
254-
TextDecoration oldValue = _collection[index];
254+
255+
TextDecoration oldValue = _collection[ index ];
255256
OnFreezablePropertyChanged(oldValue, value);
256257

257-
_collection[index] = value;
258+
_collection[ index ] = value;
259+
260+
258261
}
259262

260263

@@ -491,10 +494,10 @@ internal override void OnInheritanceContextChangedCore(EventArgs args)
491494
{
492495
base.OnInheritanceContextChangedCore(args);
493496

494-
for (int i = 0; i < this.Count; i++)
497+
for (int i=0; i<this.Count; i++)
495498
{
496499
DependencyObject inheritanceChild = _collection[i];
497-
if (inheritanceChild != null && inheritanceChild.InheritanceContext == this)
500+
if (inheritanceChild!= null && inheritanceChild.InheritanceContext == this)
498501
{
499502
inheritanceChild.OnInheritanceContextChanged(args);
500503
}
@@ -514,7 +517,7 @@ private TextDecoration Cast(object value)
514517
throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "TextDecoration"));
515518
}
516519

517-
return (TextDecoration)value;
520+
return (TextDecoration) value;
518521
}
519522

520523
// IList.Add returns int and IList<T>.Add does not. This
@@ -587,7 +590,7 @@ protected override Freezable CreateInstanceCore()
587590
/// </summary>
588591
protected override void CloneCore(Freezable source)
589592
{
590-
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection)source;
593+
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection) source;
591594

592595
base.CloneCore(source);
593596

@@ -597,17 +600,19 @@ protected override void CloneCore(Freezable source)
597600

598601
for (int i = 0; i < count; i++)
599602
{
600-
TextDecoration newValue = (TextDecoration)sourceTextDecorationCollection._collection[i].Clone();
603+
TextDecoration newValue = (TextDecoration) sourceTextDecorationCollection._collection[i].Clone();
601604
OnFreezablePropertyChanged(/* oldValue = */ null, newValue);
602605
_collection.Add(newValue);
606+
603607
}
608+
604609
}
605610
/// <summary>
606611
/// Implementation of Freezable.CloneCurrentValueCore()
607612
/// </summary>
608613
protected override void CloneCurrentValueCore(Freezable source)
609614
{
610-
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection)source;
615+
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection) source;
611616

612617
base.CloneCurrentValueCore(source);
613618

@@ -617,17 +622,19 @@ protected override void CloneCurrentValueCore(Freezable source)
617622

618623
for (int i = 0; i < count; i++)
619624
{
620-
TextDecoration newValue = (TextDecoration)sourceTextDecorationCollection._collection[i].CloneCurrentValue();
625+
TextDecoration newValue = (TextDecoration) sourceTextDecorationCollection._collection[i].CloneCurrentValue();
621626
OnFreezablePropertyChanged(/* oldValue = */ null, newValue);
622627
_collection.Add(newValue);
628+
623629
}
630+
624631
}
625632
/// <summary>
626633
/// Implementation of Freezable.GetAsFrozenCore()
627634
/// </summary>
628635
protected override void GetAsFrozenCore(Freezable source)
629636
{
630-
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection)source;
637+
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection) source;
631638

632639
base.GetAsFrozenCore(source);
633640

@@ -637,17 +644,19 @@ protected override void GetAsFrozenCore(Freezable source)
637644

638645
for (int i = 0; i < count; i++)
639646
{
640-
TextDecoration newValue = (TextDecoration)sourceTextDecorationCollection._collection[i].GetAsFrozen();
647+
TextDecoration newValue = (TextDecoration) sourceTextDecorationCollection._collection[i].GetAsFrozen();
641648
OnFreezablePropertyChanged(/* oldValue = */ null, newValue);
642649
_collection.Add(newValue);
650+
643651
}
652+
644653
}
645654
/// <summary>
646655
/// Implementation of Freezable.GetCurrentValueAsFrozenCore()
647656
/// </summary>
648657
protected override void GetCurrentValueAsFrozenCore(Freezable source)
649658
{
650-
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection)source;
659+
TextDecorationCollection sourceTextDecorationCollection = (TextDecorationCollection) source;
651660

652661
base.GetCurrentValueAsFrozenCore(source);
653662

@@ -657,10 +666,12 @@ protected override void GetCurrentValueAsFrozenCore(Freezable source)
657666

658667
for (int i = 0; i < count; i++)
659668
{
660-
TextDecoration newValue = (TextDecoration)sourceTextDecorationCollection._collection[i].GetCurrentValueAsFrozen();
669+
TextDecoration newValue = (TextDecoration) sourceTextDecorationCollection._collection[i].GetCurrentValueAsFrozen();
661670
OnFreezablePropertyChanged(/* oldValue = */ null, newValue);
662671
_collection.Add(newValue);
672+
663673
}
674+
664675
}
665676
/// <summary>
666677
/// Implementation of <see cref="System.Windows.Freezable.FreezeCore">Freezable.FreezeCore</see>.
@@ -765,6 +776,7 @@ internal Enumerator(TextDecorationCollection list)
765776

766777
void IDisposable.Dispose()
767778
{
779+
768780
}
769781

770782
/// <summary>
@@ -913,7 +925,7 @@ public TextDecorationCollection(IEnumerable<TextDecoration> collection)
913925
_collection = new FrugalStructList<TextDecoration>(icollectionOfT);
914926
}
915927
else
916-
{
928+
{
917929
ICollection icollection = collection as ICollection;
918930

919931
if (icollection != null) // an IC but not and IC<T>
@@ -933,6 +945,7 @@ public TextDecorationCollection(IEnumerable<TextDecoration> collection)
933945
TextDecoration newValue = item;
934946
OnFreezablePropertyChanged(/* oldValue = */ null, newValue);
935947
_collection.Add(newValue);
948+
936949
}
937950

938951
needsItemValidation = false;
@@ -948,6 +961,7 @@ public TextDecorationCollection(IEnumerable<TextDecoration> collection)
948961
throw new System.ArgumentException(SR.Collection_NoNull);
949962
}
950963
OnFreezablePropertyChanged(/* oldValue = */ null, item);
964+
951965
}
952966
}
953967

@@ -956,5 +970,6 @@ public TextDecorationCollection(IEnumerable<TextDecoration> collection)
956970
}
957971

958972
#endregion Constructors
973+
959974
}
960975
}

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/UIElement.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,8 @@ public void RemoveHandler(RoutedEvent routedEvent, Delegate handler)
606606
EventHandlersStoreField.ClearValue(this);
607607
WriteFlag(CoreFlags.ExistsEventHandlersStore, false);
608608
}
609-
}
609+
610+
}
610611
}
611612

612613
/// <summary>

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/UIElement3D.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,8 @@ public void RemoveHandler(RoutedEvent routedEvent, Delegate handler)
403403
EventHandlersStoreField.ClearValue(this);
404404
WriteFlag(CoreFlags.ExistsEventHandlersStore, false);
405405
}
406-
}
406+
407+
}
407408
}
408409

409410
/// <summary>

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/BooleanAnimationBase.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public Boolean GetCurrentValue(Boolean defaultOriginValue, Boolean defaultDestin
150150
// We check for null above but presharp doesn't notice so we suppress the
151151
// warning here.
152152

153-
#pragma warning suppress 6506
153+
#pragma warning suppress 6506
154154
if (animationClock.CurrentState == ClockState.Stopped)
155155
{
156156
return defaultDestinationValue;

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ByteAnimationBase.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public Byte GetCurrentValue(Byte defaultOriginValue, Byte defaultDestinationValu
150150
// We check for null above but presharp doesn't notice so we suppress the
151151
// warning here.
152152

153-
#pragma warning suppress 6506
153+
#pragma warning suppress 6506
154154
if (animationClock.CurrentState == ClockState.Stopped)
155155
{
156156
return defaultDestinationValue;

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/CharAnimationBase.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public Char GetCurrentValue(Char defaultOriginValue, Char defaultDestinationValu
150150
// We check for null above but presharp doesn't notice so we suppress the
151151
// warning here.
152152

153-
#pragma warning suppress 6506
153+
#pragma warning suppress 6506
154154
if (animationClock.CurrentState == ClockState.Stopped)
155155
{
156156
return defaultDestinationValue;

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/ColorAnimationBase.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public Color GetCurrentValue(Color defaultOriginValue, Color defaultDestinationV
150150
// We check for null above but presharp doesn't notice so we suppress the
151151
// warning here.
152152

153-
#pragma warning suppress 6506
153+
#pragma warning suppress 6506
154154
if (animationClock.CurrentState == ClockState.Stopped)
155155
{
156156
return defaultDestinationValue;

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DecimalAnimationBase.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public Decimal GetCurrentValue(Decimal defaultOriginValue, Decimal defaultDestin
150150
// We check for null above but presharp doesn't notice so we suppress the
151151
// warning here.
152152

153-
#pragma warning suppress 6506
153+
#pragma warning suppress 6506
154154
if (animationClock.CurrentState == ClockState.Stopped)
155155
{
156156
return defaultDestinationValue;

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DiscreteKeyFrames.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
namespace System.Windows.Media.Animation
2424
{
25+
26+
2527
/// <summary>
2628
/// This class is used as part of a BooleanKeyFrameCollection in
2729
/// conjunction with a KeyFrameBooleanAnimation to animate a
@@ -1616,4 +1618,5 @@ protected override Vector3D InterpolateValueCore(Vector3D baseValue, double keyF
16161618

16171619
#endregion
16181620
}
1619-
}
1621+
1622+
}

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/DoubleAnimationBase.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public Double GetCurrentValue(Double defaultOriginValue, Double defaultDestinati
150150
// We check for null above but presharp doesn't notice so we suppress the
151151
// warning here.
152152

153-
#pragma warning suppress 6506
153+
#pragma warning suppress 6506
154154
if (animationClock.CurrentState == ClockState.Stopped)
155155
{
156156
return defaultDestinationValue;

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/EasingKeyFrames.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
namespace System.Windows.Media.Animation
2424
{
25+
26+
2527
/// <summary>
2628
/// This class is used as part of a ByteKeyFrameCollection in
2729
/// conjunction with a KeyFrameByteAnimation to animate a
@@ -2020,4 +2022,5 @@ public IEasingFunction EasingFunction
20202022

20212023
#endregion
20222024
}
2023-
}
2025+
2026+
}

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int16AnimationBase.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public Int16 GetCurrentValue(Int16 defaultOriginValue, Int16 defaultDestinationV
150150
// We check for null above but presharp doesn't notice so we suppress the
151151
// warning here.
152152

153-
#pragma warning suppress 6506
153+
#pragma warning suppress 6506
154154
if (animationClock.CurrentState == ClockState.Stopped)
155155
{
156156
return defaultDestinationValue;

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int32AnimationBase.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public Int32 GetCurrentValue(Int32 defaultOriginValue, Int32 defaultDestinationV
150150
// We check for null above but presharp doesn't notice so we suppress the
151151
// warning here.
152152

153-
#pragma warning suppress 6506
153+
#pragma warning suppress 6506
154154
if (animationClock.CurrentState == ClockState.Stopped)
155155
{
156156
return defaultDestinationValue;

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/Int64AnimationBase.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public Int64 GetCurrentValue(Int64 defaultOriginValue, Int64 defaultDestinationV
150150
// We check for null above but presharp doesn't notice so we suppress the
151151
// warning here.
152152

153-
#pragma warning suppress 6506
153+
#pragma warning suppress 6506
154154
if (animationClock.CurrentState == ClockState.Stopped)
155155
{
156156
return defaultDestinationValue;

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/KeyFrames.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
namespace System.Windows.Media.Animation
2424
{
25+
26+
2527
/// <summary>
2628
/// This class is used as part of a BooleanKeyFrameCollection in
2729
/// conjunction with a KeyFrameBooleanAnimation to animate a
@@ -2981,4 +2983,5 @@ protected abstract Vector3D InterpolateValueCore(
29812983

29822984
#endregion
29832985
}
2984-
}
2986+
2987+
}

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Animation/Generated/LinearKeyFrames.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
namespace System.Windows.Media.Animation
2424
{
25+
26+
2527
/// <summary>
2628
/// This class is used as part of a ByteKeyFrameCollection in
2729
/// conjunction with a KeyFrameByteAnimation to animate a
@@ -1252,4 +1254,5 @@ protected override Vector3D InterpolateValueCore(Vector3D baseValue, double keyF
12521254

12531255
#endregion
12541256
}
1255-
}
1257+
1258+
}

0 commit comments

Comments
 (0)