}
else
{
- long[] autoPopulatedUserIds;
- string attachmentUrl;
- status.Text = this.FormatStatusTextExtended(this.StatusText.Text, out autoPopulatedUserIds, out attachmentUrl);
+ status.Text = this.FormatStatusTextExtended(this.StatusText.Text, out var autoPopulatedUserIds, out var attachmentUrl);
status.InReplyToStatusId = this.inReplyTo?.Item1;
status.AttachmentUrl = attachmentUrl;
IMediaItem[] uploadItems = null;
if (ImageSelector.Visible)
{
- string serviceName;
//画像投稿
- if (!ImageSelector.TryGetSelectedMedia(out serviceName, out uploadItems))
+ if (!ImageSelector.TryGetSelectedMedia(out var serviceName, out uploadItems))
return;
uploadService = this.ImageSelector.GetService(serviceName);
}
private string FormatStatusTextExtended(string statusText)
- {
- long[] autoPopulatedUserIds;
- string attachmentUrl;
-
- return this.FormatStatusTextExtended(statusText, out autoPopulatedUserIds, out attachmentUrl);
- }
+ => this.FormatStatusTextExtended(statusText, out var autoPopulatedUserIds, out var attachmentUrl);
/// <summary>
/// <see cref="FormatStatusText"/> に加えて、拡張モードで140字にカウントされない文字列の除去を行います
private async void PostBrowser_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
{
- Task asyncTask;
- bool KeyRes = this.Owner.CommonKeyDown(e.KeyData, FocusedControl.PostBrowser, out asyncTask);
+ var KeyRes = this.Owner.CommonKeyDown(e.KeyData, FocusedControl.PostBrowser, out var asyncTask);
if (KeyRes)
{
e.IsInputKey = true;