A game framework written with osu! in mind.

Fix some new inspections from latest resharper EAP

+10 -7
+7 -2
osu.Framework.Tests/Audio/TestAudioAdjustments.cs
··· 125 public void TestAdjustBoundComponentBeforeBind() 126 { 127 var adjustments = new AudioAdjustments(); 128 - var adjustments2 = new AudioAdjustments(); 129 130 - adjustments2.Volume.Value = 0.5f; 131 132 adjustments.BindAdjustments(adjustments2); 133
··· 125 public void TestAdjustBoundComponentBeforeBind() 126 { 127 var adjustments = new AudioAdjustments(); 128 129 + var adjustments2 = new AudioAdjustments 130 + { 131 + Volume = 132 + { 133 + Value = 0.5f 134 + } 135 + }; 136 137 adjustments.BindAdjustments(adjustments2); 138
+1 -1
osu.Framework/Bindables/NonNullableBindable.cs
··· 22 set 23 { 24 if (value == null) 25 - throw new ArgumentNullException(nameof(Value), $"Cannot set {nameof(Value)} of a {nameof(NonNullableBindable<T>)} to null."); 26 27 base.Value = value; 28 }
··· 22 set 23 { 24 if (value == null) 25 + throw new ArgumentNullException(nameof(value), $"Cannot set {nameof(Value)} of a {nameof(NonNullableBindable<T>)} to null."); 26 27 base.Value = value; 28 }
+2 -2
osu.Framework/Graphics/Containers/GridContainer.cs
··· 73 set 74 { 75 if (value == null) 76 - throw new ArgumentNullException(nameof(RowDimensions)); 77 78 if (rowDimensions == value) 79 return; ··· 94 set 95 { 96 if (value == null) 97 - throw new ArgumentNullException(nameof(ColumnDimensions)); 98 99 if (columnDimensions == value) 100 return;
··· 73 set 74 { 75 if (value == null) 76 + throw new ArgumentNullException(nameof(value)); 77 78 if (rowDimensions == value) 79 return; ··· 94 set 95 { 96 if (value == null) 97 + throw new ArgumentNullException(nameof(value)); 98 99 if (columnDimensions == value) 100 return;
-2
osu.Framework/Localisation/LocalisationManager.cs
··· 3 4 using System.Collections.Generic; 5 using System.Globalization; 6 - using JetBrains.Annotations; 7 using osu.Framework.Bindables; 8 using osu.Framework.Configuration; 9 ··· 37 /// Creates an <see cref="ILocalisedBindableString"/> which automatically updates its text according to information provided in <see cref="ILocalisedBindableString.Text"/>. 38 /// </summary> 39 /// <returns>The <see cref="ILocalisedBindableString"/>.</returns> 40 - [NotNull] 41 public ILocalisedBindableString GetLocalisedString(LocalisableString original) => new LocalisedBindableString(original, currentStorage, preferUnicode); 42 43 private void updateLocale(ValueChangedEvent<string> locale)
··· 3 4 using System.Collections.Generic; 5 using System.Globalization; 6 using osu.Framework.Bindables; 7 using osu.Framework.Configuration; 8 ··· 36 /// Creates an <see cref="ILocalisedBindableString"/> which automatically updates its text according to information provided in <see cref="ILocalisedBindableString.Text"/>. 37 /// </summary> 38 /// <returns>The <see cref="ILocalisedBindableString"/>.</returns> 39 public ILocalisedBindableString GetLocalisedString(LocalisableString original) => new LocalisedBindableString(original, currentStorage, preferUnicode); 40 41 private void updateLocale(ValueChangedEvent<string> locale)