OSDN Git Service

C#7.0で追加されたExpression-Bodiedメンバの構文を使用する
authorKimura Youichi <kim.upsilon@bucyou.net>
Fri, 18 Nov 2016 12:53:24 +0000 (21:53 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sat, 11 Mar 2017 18:31:35 +0000 (03:31 +0900)
21 files changed:
OpenTween.Tests/Connection/LazyJsonTest.cs
OpenTween/AuthDialog.cs
OpenTween/Connection/TwitterApiConnection.cs
OpenTween/DetailsListView.cs
OpenTween/HookGlobalHotkey.cs
OpenTween/ImageCache.cs
OpenTween/InputTabName.cs
OpenTween/MediaItem.cs
OpenTween/MemoryImage.cs
OpenTween/Models/PostClass.cs
OpenTween/Models/PostFilterRule.cs
OpenTween/OTPictureBox.cs
OpenTween/SendErrorReportForm.cs
OpenTween/Setting/SettingCommon.cs
OpenTween/Setting/SettingLocal.cs
OpenTween/TabsDialog.cs
OpenTween/ToolStripAPIGauge.cs
OpenTween/Tween.cs
OpenTween/TweetDetailsView.cs
OpenTween/UpdateDialog.cs
OpenTween/WaitingDialog.cs

index 39a3655..759255d 100644 (file)
@@ -110,8 +110,8 @@ namespace OpenTween.Connection
             public override long Length => 100L;
             public override long Position
             {
-                get { return 0L; }
-                set { throw new NotSupportedException(); }
+                get => 0L;
+                set => throw new NotSupportedException();
             }
 
             public override void Flush()
index f6139ca..a24df9d 100644 (file)
@@ -45,14 +45,14 @@ namespace OpenTween
 
         public string AuthUrl
         {
-            get { return AuthLinkLabel.Text; }
-            set { AuthLinkLabel.Text = value; }
+            get => AuthLinkLabel.Text;
+            set => AuthLinkLabel.Text = value;
         }
 
         public string Pin
         {
-            get { return PinTextBox.Text.Trim(); }
-            set { PinTextBox.Text = value; }
+            get => PinTextBox.Text.Trim();
+            set => PinTextBox.Text = value;
         }
 
         private void AuthLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
index 4e09032..254eb31 100644 (file)
@@ -43,8 +43,8 @@ namespace OpenTween.Connection
         // SettingCommon.xml の TwitterUrl との互換性のために用意
         public static string RestApiHost
         {
-            get { return RestApiBase.Host; }
-            set { RestApiBase = new Uri($"https://{value}/1.1/"); }
+            get => RestApiBase.Host;
+            set => RestApiBase = new Uri($"https://{value}/1.1/");
         }
 
         public bool IsDisposed { get; private set; } = false;
@@ -358,9 +358,7 @@ namespace OpenTween.Connection
         }
 
         ~TwitterApiConnection()
-        {
-            this.Dispose(false);
-        }
+            => this.Dispose(false);
 
         private void Networking_WebProxyChanged(object sender, EventArgs e)
         {
index 3778c3a..1b5382c 100644 (file)
@@ -106,8 +106,8 @@ namespace OpenTween.OpenTweenCustomControl
         /// </remarks>
         public int SelectionMark
         {
-            get { return NativeMethods.ListView_GetSelectionMark(this.Handle); }
-            set { NativeMethods.ListView_SetSelectionMark(this.Handle, value); }
+            get => NativeMethods.ListView_GetSelectionMark(this.Handle);
+            set => NativeMethods.ListView_SetSelectionMark(this.Handle, value);
         }
 
         public void SelectItems(int[] indices)
index df694cf..376934e 100644 (file)
@@ -171,8 +171,6 @@ namespace OpenTween
 #endregion
 
         ~HookGlobalHotkey()
-        {
-            this.Dispose(false);
-        }
+            => this.Dispose(false);
     }
 }
index 5f66cfc..6f72f49 100644 (file)
@@ -185,8 +185,6 @@ namespace OpenTween
         }
 
         ~ImageCache()
-        {
-            this.Dispose(false);
-        }
+            => this.Dispose(false);
     }
 }
index 9c135de..cda919a 100644 (file)
@@ -57,20 +57,20 @@ namespace OpenTween
 
         public string TabName
         {
-            get { return this.TextTabName.Text.Trim(); }
-            set { TextTabName.Text = value.Trim(); }
+            get => this.TextTabName.Text.Trim();
+            set => TextTabName.Text = value.Trim();
         }
 
         public string FormTitle
         {
-            get { return this.Text; }
-            set { this.Text = value; }
+            get => this.Text;
+            set => this.Text = value;
         }
 
         public string FormDescription
         {
-            get { return this.LabelDescription.Text; }
-            set { this.LabelDescription.Text = value; }
+            get => this.LabelDescription.Text;
+            set => this.LabelDescription.Text = value;
         }
 
         public bool IsShowUsage { get; set; }
index 3273bc1..7b8a400 100644 (file)
@@ -284,8 +284,6 @@ namespace OpenTween
         }
 
         ~MemoryImageMediaItem()
-        {
-            this.Dispose(false);
-        }
+            => this.Dispose(false);
     }
 }
index fa3efbe..55dae22 100644 (file)
@@ -255,9 +255,7 @@ namespace OpenTween
         }
 
         ~MemoryImage()
-        {
-            this.Dispose(false);
-        }
+            => this.Dispose(false);
 
         /// <summary>
         /// 指定された Stream から MemoryImage を作成します。
index 8a4c951..1cf0558 100644 (file)
@@ -88,7 +88,7 @@ namespace OpenTween.Models
 
                 return expandedHtml;
             }
-            set { this._text = value; }
+            set => this._text = value;
         }
         private string _text;
 
index 87d3feb..a69c95d 100644 (file)
@@ -68,162 +68,162 @@ namespace OpenTween.Models
 
         public bool Enabled
         {
-            get { return this._enabled; }
-            set { this.SetProperty(ref this._enabled, value); }
+            get => this._enabled;
+            set => this.SetProperty(ref this._enabled, value);
         }
         private bool _enabled;
 
         [XmlElement("NameFilter")]
         public string FilterName
         {
-            get { return this._FilterName; }
-            set { this.SetProperty(ref this._FilterName, value); }
+            get => this._FilterName;
+            set => this.SetProperty(ref this._FilterName, value);
         }
         private string _FilterName;
 
         [XmlElement("ExNameFilter")]
         public string ExFilterName
         {
-            get { return this._ExFilterName; }
-            set { this.SetProperty(ref this._ExFilterName, value); }
+            get => this._ExFilterName;
+            set => this.SetProperty(ref this._ExFilterName, value);
         }
         private string _ExFilterName;
 
         [XmlArray("BodyFilterArray")]
         public string[] FilterBody
         {
-            get { return this._FilterBody; }
-            set { this.SetProperty(ref this._FilterBody, value ?? throw new ArgumentNullException(nameof(value))); }
+            get => this._FilterBody;
+            set => this.SetProperty(ref this._FilterBody, value ?? throw new ArgumentNullException(nameof(value)));
         }
         private string[] _FilterBody = new string[0];
 
         [XmlArray("ExBodyFilterArray")]
         public string[] ExFilterBody
         {
-            get { return this._ExFilterBody; }
-            set { this.SetProperty(ref this._ExFilterBody, value ?? throw new ArgumentNullException(nameof(value))); }
+            get => this._ExFilterBody;
+            set => this.SetProperty(ref this._ExFilterBody, value ?? throw new ArgumentNullException(nameof(value)));
         }
         private string[] _ExFilterBody = new string[0];
 
         [XmlElement("SearchBoth")]
         public bool UseNameField
         {
-            get { return this._UseNameField; }
-            set { this.SetProperty(ref this._UseNameField, value); }
+            get => this._UseNameField;
+            set => this.SetProperty(ref this._UseNameField, value);
         }
         private bool _UseNameField;
 
         [XmlElement("ExSearchBoth")]
         public bool ExUseNameField
         {
-            get { return this._ExUseNameField; }
-            set { this.SetProperty(ref this._ExUseNameField, value); }
+            get => this._ExUseNameField;
+            set => this.SetProperty(ref this._ExUseNameField, value);
         }
         private bool _ExUseNameField;
 
         [XmlElement("MoveFrom")]
         public bool MoveMatches
         {
-            get { return this._MoveMatches; }
-            set { this.SetProperty(ref this._MoveMatches, value); }
+            get => this._MoveMatches;
+            set => this.SetProperty(ref this._MoveMatches, value);
         }
         private bool _MoveMatches;
 
         [XmlElement("SetMark")]
         public bool MarkMatches
         {
-            get { return this._MarkMatches; }
-            set { this.SetProperty(ref this._MarkMatches, value); }
+            get => this._MarkMatches;
+            set => this.SetProperty(ref this._MarkMatches, value);
         }
         private bool _MarkMatches;
 
         [XmlElement("SearchUrl")]
         public bool FilterByUrl
         {
-            get { return this._FilterByUrl; }
-            set { this.SetProperty(ref this._FilterByUrl, value); }
+            get => this._FilterByUrl;
+            set => this.SetProperty(ref this._FilterByUrl, value);
         }
         private bool _FilterByUrl;
 
         [XmlElement("ExSearchUrl")]
         public bool ExFilterByUrl
         {
-            get { return this._ExFilterByUrl; }
-            set { this.SetProperty(ref this._ExFilterByUrl, value); }
+            get => this._ExFilterByUrl;
+            set => this.SetProperty(ref this._ExFilterByUrl, value);
         }
         private bool _ExFilterByUrl;
 
         public bool CaseSensitive
         {
-            get { return this._CaseSensitive; }
-            set { this.SetProperty(ref this._CaseSensitive, value); }
+            get => this._CaseSensitive;
+            set => this.SetProperty(ref this._CaseSensitive, value);
         }
         private bool _CaseSensitive;
 
         public bool ExCaseSensitive
         {
-            get { return this._ExCaseSensitive; }
-            set { this.SetProperty(ref this._ExCaseSensitive, value); }
+            get => this._ExCaseSensitive;
+            set => this.SetProperty(ref this._ExCaseSensitive, value);
         }
         private bool _ExCaseSensitive;
 
         public bool UseLambda
         {
-            get { return this._UseLambda; }
-            set { this.SetProperty(ref this._UseLambda, value); }
+            get => this._UseLambda;
+            set => this.SetProperty(ref this._UseLambda, value);
         }
         private bool _UseLambda;
 
         public bool ExUseLambda
         {
-            get { return this._ExUseLambda; }
-            set { this.SetProperty(ref this._ExUseLambda, value); }
+            get => this._ExUseLambda;
+            set => this.SetProperty(ref this._ExUseLambda, value);
         }
         private bool _ExUseLambda;
 
         public bool UseRegex
         {
-            get { return this._UseRegex; }
-            set { this.SetProperty(ref this._UseRegex, value); }
+            get => this._UseRegex;
+            set => this.SetProperty(ref this._UseRegex, value);
         }
         private bool _UseRegex;
 
         public bool ExUseRegex
         {
-            get { return this._ExUseRegex; }
-            set { this.SetProperty(ref this._ExUseRegex, value); }
+            get => this._ExUseRegex;
+            set => this.SetProperty(ref this._ExUseRegex, value);
         }
         private bool _ExUseRegex;
 
         [XmlElement("IsRt")]
         public bool FilterRt
         {
-            get { return this._FilterRt; }
-            set { this.SetProperty(ref this._FilterRt, value); }
+            get => this._FilterRt;
+            set => this.SetProperty(ref this._FilterRt, value);
         }
         private bool _FilterRt;
 
         [XmlElement("IsExRt")]
         public bool ExFilterRt
         {
-            get { return this._ExFilterRt; }
-            set { this.SetProperty(ref this._ExFilterRt, value); }
+            get => this._ExFilterRt;
+            set => this.SetProperty(ref this._ExFilterRt, value);
         }
         private bool _ExFilterRt;
 
         [XmlElement("Source")]
         public string FilterSource
         {
-            get { return this._FilterSource; }
-            set { this.SetProperty(ref this._FilterSource, value); }
+            get => this._FilterSource;
+            set => this.SetProperty(ref this._FilterSource, value);
         }
         private string _FilterSource;
 
         [XmlElement("ExSource")]
         public string ExFilterSource
         {
-            get { return this._ExFilterSource; }
-            set { this.SetProperty(ref this._ExFilterSource, value); }
+            get => this._ExFilterSource;
+            set => this.SetProperty(ref this._ExFilterSource, value);
         }
         private string _ExFilterSource;
 
index 2e9c290..bd3c8f3 100644 (file)
@@ -171,7 +171,7 @@ namespace OpenTween
         [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
         public new string ImageLocation
         {
-            get { return null; }
+            get => null;
             set { }
         }
 
index cc78cdc..ab6a8fb 100644 (file)
@@ -120,15 +120,15 @@ namespace OpenTween
 
         public bool CanSendByDM
         {
-            get { return this._canSendByDm; }
-            private set { this.SetProperty(ref this._canSendByDm, value); }
+            get => this._canSendByDm;
+            private set => this.SetProperty(ref this._canSendByDm, value);
         }
         private bool _canSendByDm;
 
         public string EncodedReportForDM
         {
-            get { return this._encodedReportForDM; }
-            private set { this.SetProperty(ref this._encodedReportForDM, value); }
+            get => this._encodedReportForDM;
+            private set => this.SetProperty(ref this._encodedReportForDM, value);
         }
         private string _encodedReportForDM;
 
index 4c5cc62..8abdaf7 100644 (file)
@@ -53,8 +53,8 @@ namespace OpenTween
         public string Password = "";
         public string EncryptPassword
         {
-            get { return Encrypt(Password); }
-            set { Password = Decrypt(value); }
+            get => Encrypt(Password);
+            set => Password = Decrypt(value);
         }
 
         public string Token = "";
@@ -62,8 +62,8 @@ namespace OpenTween
         public string TokenSecret = "";
         public string EncryptTokenSecret
         {
-            get { return Encrypt(TokenSecret); }
-            set { TokenSecret = Decrypt(value); }
+            get => Encrypt(TokenSecret);
+            set => TokenSecret = Decrypt(value);
         }
 
         private string Encrypt(string password)
@@ -253,8 +253,8 @@ namespace OpenTween
         public string TokenSecret = "";
         public string EncryptTokenSecret
         {
-            get { return Encrypt(TokenSecret); }
-            set { TokenSecret = Decrypt(value); }
+            get => Encrypt(TokenSecret);
+            set => TokenSecret = Decrypt(value);
         }
         private string Encrypt(string password)
         {
index d45b820..518a424 100644 (file)
@@ -92,168 +92,168 @@ namespace OpenTween
         public Font FontUnread = new Font(SystemFonts.DefaultFont, FontStyle.Bold | FontStyle.Underline);
         public string FontUnreadStr
         {
-            get { return this.FontToString(this.FontUnread); }
-            set { this.FontUnread = this.StringToFont(value); }
+            get => this.FontToString(this.FontUnread);
+            set => this.FontUnread = this.StringToFont(value);
         }
 
         [XmlIgnore]
         public Color ColorUnread = System.Drawing.SystemColors.ControlText;
         public string ColorUnreadStr
         {
-            get { return this.ColorToString(this.ColorUnread); }
-            set { this.ColorUnread = this.StringToColor(value); }
+            get => this.ColorToString(this.ColorUnread);
+            set => this.ColorUnread = this.StringToColor(value);
         }
 
         [XmlIgnore]
         public Font FontRead = System.Drawing.SystemFonts.DefaultFont;
         public string FontReadStr
         {
-            get { return this.FontToString(this.FontRead); }
-            set { this.FontRead = this.StringToFont(value); }
+            get => this.FontToString(this.FontRead);
+            set => this.FontRead = this.StringToFont(value);
         }
 
         [XmlIgnore]
         public Color ColorRead = System.Drawing.SystemColors.ControlText;
         public string ColorReadStr
         {
-            get { return this.ColorToString(this.ColorRead); }
-            set { this.ColorRead = this.StringToColor(value); }
+            get => this.ColorToString(this.ColorRead);
+            set => this.ColorRead = this.StringToColor(value);
         }
 
         [XmlIgnore]
         public Color ColorFav = Color.FromKnownColor(System.Drawing.KnownColor.Red);
         public string ColorFavStr
         {
-            get { return this.ColorToString(this.ColorFav); }
-            set { this.ColorFav = this.StringToColor(value); }
+            get => this.ColorToString(this.ColorFav);
+            set => this.ColorFav = this.StringToColor(value);
         }
 
         [XmlIgnore]
         public Color ColorOWL = Color.FromKnownColor(System.Drawing.KnownColor.Blue);
         public string ColorOWLStr
         {
-            get { return this.ColorToString(this.ColorOWL); }
-            set { this.ColorOWL = this.StringToColor(value); }
+            get => this.ColorToString(this.ColorOWL);
+            set => this.ColorOWL = this.StringToColor(value);
         }
 
         [XmlIgnore]
         public Color ColorRetweet = Color.FromKnownColor(System.Drawing.KnownColor.Green);
         public string ColorRetweetStr
         {
-            get { return this.ColorToString(this.ColorRetweet); }
-            set { this.ColorRetweet = this.StringToColor(value); }
+            get => this.ColorToString(this.ColorRetweet);
+            set => this.ColorRetweet = this.StringToColor(value);
         }
 
         [XmlIgnore]
         public Font FontDetail = System.Drawing.SystemFonts.DefaultFont;
         public string FontDetailStr
         {
-            get { return this.FontToString(this.FontDetail); }
-            set { this.FontDetail = this.StringToFont(value); }
+            get => this.FontToString(this.FontDetail);
+            set => this.FontDetail = this.StringToFont(value);
         }
 
         [XmlIgnore]
         public Color ColorSelf = Color.FromKnownColor(System.Drawing.KnownColor.AliceBlue);
         public string ColorSelfStr
         {
-            get { return this.ColorToString(this.ColorSelf); }
-            set { this.ColorSelf = this.StringToColor(value); }
+            get => this.ColorToString(this.ColorSelf);
+            set => this.ColorSelf = this.StringToColor(value);
         }
 
         [XmlIgnore]
         public Color ColorAtSelf = Color.FromKnownColor(System.Drawing.KnownColor.AntiqueWhite);
         public string ColorAtSelfStr
         {
-            get { return this.ColorToString(this.ColorAtSelf); }
-            set { this.ColorAtSelf = this.StringToColor(value); }
+            get => this.ColorToString(this.ColorAtSelf);
+            set => this.ColorAtSelf = this.StringToColor(value);
         }
 
         [XmlIgnore]
         public Color ColorTarget = Color.FromKnownColor(System.Drawing.KnownColor.LemonChiffon);
         public string ColorTargetStr
         {
-            get { return this.ColorToString(this.ColorTarget); }
-            set { this.ColorTarget = this.StringToColor(value); }
+            get => this.ColorToString(this.ColorTarget);
+            set => this.ColorTarget = this.StringToColor(value);
         }
 
         [XmlIgnore]
         public Color ColorAtTarget = Color.FromKnownColor(System.Drawing.KnownColor.LavenderBlush);
         public string ColorAtTargetStr
         {
-            get { return this.ColorToString(this.ColorAtTarget); }
-            set { this.ColorAtTarget = this.StringToColor(value); }
+            get => this.ColorToString(this.ColorAtTarget);
+            set => this.ColorAtTarget = this.StringToColor(value);
         }
 
         [XmlIgnore]
         public Color ColorAtFromTarget = Color.FromKnownColor(System.Drawing.KnownColor.Honeydew);
         public string ColorAtFromTargetStr
         {
-            get { return this.ColorToString(this.ColorAtFromTarget); }
-            set { this.ColorAtFromTarget = this.StringToColor(value); }
+            get => this.ColorToString(this.ColorAtFromTarget);
+            set => this.ColorAtFromTarget = this.StringToColor(value);
         }
 
         [XmlIgnore]
         public Color ColorAtTo = Color.FromKnownColor(System.Drawing.KnownColor.Pink);
         public string ColorAtToStr
         {
-            get { return this.ColorToString(this.ColorAtTo); }
-            set { this.ColorAtTo = this.StringToColor(value); }
+            get => this.ColorToString(this.ColorAtTo);
+            set => this.ColorAtTo = this.StringToColor(value);
         }
 
         [XmlIgnore]
         public Color ColorInputBackcolor = Color.FromKnownColor(System.Drawing.KnownColor.LemonChiffon);
         public string ColorInputBackcolorStr
         {
-            get { return this.ColorToString(this.ColorInputBackcolor); }
-            set { this.ColorInputBackcolor = this.StringToColor(value); }
+            get => this.ColorToString(this.ColorInputBackcolor);
+            set => this.ColorInputBackcolor = this.StringToColor(value);
         }
 
         [XmlIgnore]
         public Color ColorInputFont = Color.FromKnownColor(System.Drawing.KnownColor.ControlText);
         public string ColorInputFontStr
         {
-            get { return this.ColorToString(this.ColorInputFont); }
-            set { this.ColorInputFont = this.StringToColor(value); }
+            get => this.ColorToString(this.ColorInputFont);
+            set => this.ColorInputFont = this.StringToColor(value);
         }
 
         [XmlIgnore]
         public Font FontInputFont = System.Drawing.SystemFonts.DefaultFont;
         public string FontInputFontStr
         {
-            get { return this.FontToString(this.FontInputFont); }
-            set { this.FontInputFont = this.StringToFont(value); }
+            get => this.FontToString(this.FontInputFont);
+            set => this.FontInputFont = this.StringToFont(value);
         }
 
         [XmlIgnore]
         public Color ColorListBackcolor = Color.FromKnownColor(System.Drawing.KnownColor.Window);
         public string ColorListBackcolorStr
         {
-            get { return this.ColorToString(this.ColorListBackcolor); }
-            set { this.ColorListBackcolor = this.StringToColor(value); }
+            get => this.ColorToString(this.ColorListBackcolor);
+            set => this.ColorListBackcolor = this.StringToColor(value);
         }
 
         [XmlIgnore]
         public Color ColorDetailBackcolor = Color.FromKnownColor(System.Drawing.KnownColor.Window);
         public string ColorDetailBackcolorStr
         {
-            get { return this.ColorToString(this.ColorDetailBackcolor); }
-            set { this.ColorDetailBackcolor = this.StringToColor(value); }
+            get => this.ColorToString(this.ColorDetailBackcolor);
+            set => this.ColorDetailBackcolor = this.StringToColor(value);
         }
 
         [XmlIgnore]
         public Color ColorDetail = Color.FromKnownColor(System.Drawing.KnownColor.ControlText);
         public string ColorDetailStr
         {
-            get { return this.ColorToString(this.ColorDetail); }
-            set { this.ColorDetail = this.StringToColor(value); }
+            get => this.ColorToString(this.ColorDetail);
+            set => this.ColorDetail = this.StringToColor(value);
         }
 
         [XmlIgnore]
         public Color ColorDetailLink = Color.FromKnownColor(System.Drawing.KnownColor.Blue);
         public string ColorDetailLinkStr
         {
-            get { return this.ColorToString(this.ColorDetailLink); }
-            set { this.ColorDetailLink = this.StringToColor(value); }
+            get => this.ColorToString(this.ColorDetailLink);
+            set => this.ColorDetailLink = this.StringToColor(value);
         }
 
         [XmlIgnore]
@@ -267,8 +267,8 @@ namespace OpenTween
         /// </remarks>
         public string FontUIGlobalStr
         {
-            get { return this.FontToString(this.FontUIGlobal); }
-            set { this.FontUIGlobal = this.StringToFont(value); }
+            get => this.FontToString(this.FontUIGlobal);
+            set => this.FontUIGlobal = this.StringToFont(value);
         }
 
         [XmlIgnore]
index b0216d5..9ba8cba 100644 (file)
@@ -38,7 +38,7 @@ namespace OpenTween
         private bool _MultiSelect = false;
         public bool MultiSelect
         {
-            get { return this._MultiSelect; }
+            get => this._MultiSelect;
             set { this._MultiSelect = value; this.UpdateTabList(); }
         }
 
index b13a779..bfcfc10 100644 (file)
@@ -123,24 +123,24 @@ namespace OpenTween
         [EditorBrowsable(EditorBrowsableState.Never)]
         public new string Text
         {
-            get { return base.Text; }
-            set { base.Text = value; }
+            get => base.Text;
+            set => base.Text = value;
         }
 
         [Browsable(false)]
         [EditorBrowsable(EditorBrowsableState.Never)]
         public new string ToolTipText
         {
-            get { return base.ToolTipText; }
-            set { base.ToolTipText = value; }
+            get => base.ToolTipText;
+            set => base.ToolTipText = value;
         }
 
         [DefaultValue(ToolStripItemDisplayStyle.Text)]
         [RefreshProperties(RefreshProperties.Repaint)]
         public new ToolStripItemDisplayStyle DisplayStyle
         {
-            get { return base.DisplayStyle; }
-            set { base.DisplayStyle = value; }
+            get => base.DisplayStyle;
+            set => base.DisplayStyle = value;
         }
 
         protected double remainMinutes = -1;
index e6cd704..1ac7310 100644 (file)
@@ -7118,8 +7118,8 @@ namespace OpenTween
 
         public Color InputBackColor
         {
-            get { return _clInputBackcolor; }
-            set { _clInputBackcolor = value; }
+            get => _clInputBackcolor;
+            set => _clInputBackcolor = value;
         }
 
         private void StatusText_Leave(object sender, EventArgs e)
index cc8abff..9909d82 100644 (file)
@@ -59,8 +59,8 @@ namespace OpenTween
         [DefaultValue(false)]
         public new bool TabStop
         {
-            get { return base.TabStop; }
-            set { base.TabStop = value; }
+            get => base.TabStop;
+            set => base.TabStop = value;
         }
 
         /// <summary>ステータスバーに表示するテキストの変化を通知するイベント</summary>
index 8b4d8bc..bfa9c54 100644 (file)
@@ -40,14 +40,14 @@ namespace OpenTween
     {
         public string SummaryText
         {
-            get { return this.LabelSummary.Text; }
-            set { this.LabelSummary.Text = value; }
+            get => this.LabelSummary.Text;
+            set => this.LabelSummary.Text = value;
         }
 
         public string DetailsText
         {
-            get { return this.TextDetail.Text; }
-            set { this.TextDetail.Text = value; }
+            get => this.TextDetail.Text;
+            set => this.TextDetail.Text = value;
         }
 
         public UpdateDialog()
index ecd7ee9..4a992a5 100644 (file)
@@ -53,8 +53,8 @@ namespace OpenTween
         /// </summary>
         public string Message
         {
-            get { return this.labelMessage.Text; }
-            set { this.labelMessage.Text = value; }
+            get => this.labelMessage.Text;
+            set => this.labelMessage.Text = value;
         }
 
         public WaitingDialog()