Code inspections

This commit is contained in:
2019-07-19 14:42:25 +01:00
parent 0e98f0e370
commit ac887ccdff
6 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -33,8 +33,8 @@ namespace ASCOM.Meade.net
#region Access to ole32.dll functions for class factories
// Define two common GUID objects for public usage.
private static Guid _iidIUnknown = new Guid("{00000000-0000-0000-C000-000000000046}");
private static Guid _iidIDispatch = new Guid("{00020400-0000-0000-C000-000000000046}");
private static readonly Guid _iidIUnknown = new Guid("{00000000-0000-0000-C000-000000000046}");
private static readonly Guid _iidIDispatch = new Guid("{00020400-0000-0000-C000-000000000046}");
[Flags]
enum Clsctx : uint
@@ -136,7 +136,7 @@ namespace ASCOM.Meade.net
#endregion
#region Common ClassFactory Methods
public uint ClassContext { get; set; }
public uint ClassContext { get; }
public Guid ClassId
{
@@ -144,7 +144,7 @@ namespace ASCOM.Meade.net
set => _mClassId = value;
}
public uint Flags { get; set; }
public uint Flags { get; }
public bool RegisterClassObject()
{