Fix IDE0032: UseAutoProperty part 1 (#14243)

https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0032
This commit is contained in:
xtqqczze
2020-11-24 15:14:20 +05:00
committed by GitHub
parent 94597deb39
commit 0418e1ce8f
+10 -110
View File
@@ -28,153 +28,53 @@ namespace Microsoft.WSMan.Management
/// <summary>
/// Property.
/// </summary>
public bool SkipCACheck
{
get { return _SkipCACheck; }
set
{
_SkipCACheck = value;
}
}
private bool _SkipCACheck;
public bool SkipCACheck { get; set; }
/// <summary>
/// Property.
/// </summary>
public bool SkipCNCheck
{
get { return _SkipCNCheck; }
set
{
_SkipCNCheck = value;
}
}
private bool _SkipCNCheck;
public bool SkipCNCheck { get; set; }
/// <summary>
/// Property.
/// </summary>
public bool SkipRevocationCheck
{
get { return _SkipRevocationCheck; }
set
{
_SkipRevocationCheck = value;
}
}
private bool _SkipRevocationCheck;
public bool SkipRevocationCheck { get; set; }
/// <summary>
/// Property.
/// </summary>
public bool UseEncryption
{
get { return _useencryption; }
set
{
_useencryption = value;
}
}
private bool _useencryption = true;
public bool UseEncryption { get; set; } = true;
/// <summary>
/// Property.
/// </summary>
public bool UseUtf16
{
get { return _UTF16; }
set
{
_UTF16 = value;
}
}
private bool _UTF16;
public bool UseUtf16 { get; set; }
/// <summary>
/// Property.
/// </summary>
public ProxyAuthentication ProxyAuthentication
{
get { return _ProxyAuthentication; }
set
{
_ProxyAuthentication = value;
}
}
private ProxyAuthentication _ProxyAuthentication;
public ProxyAuthentication ProxyAuthentication { get; set; }
/// <summary>
/// Property.
/// </summary>
[SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "SPN")]
public int SPNPort
{
get { return _SPNPort; }
set
{
_SPNPort = value;
}
}
private int _SPNPort;
public int SPNPort { get; set; }
/// <summary>
/// Property.
/// </summary>
public int OperationTimeout
{
get { return _OperationTimeout; }
set
{
_OperationTimeout = value;
}
}
private int _OperationTimeout;
public int OperationTimeout { get; set; }
/// <summary>
/// Property.
/// </summary>
public NetworkCredential ProxyCredential
{
get { return _ProxyCredential; }
set
{
_ProxyCredential = value;
}
}
private NetworkCredential _ProxyCredential;
public NetworkCredential ProxyCredential { get; set; }
/// <summary>
/// Property.
/// </summary>
public ProxyAccessType ProxyAccessType
{
get { return _proxyaccesstype; }
set
{
_proxyaccesstype = value;
}
}
private ProxyAccessType _proxyaccesstype;
public ProxyAccessType ProxyAccessType { get; set; }
}
/// <summary>