Skip to content

Commit

Permalink
Merge pull request #1591 from RussKie/fix_xmldoc
Browse files Browse the repository at this point in the history
Fix xmldoc
  • Loading branch information
RussKie authored Aug 8, 2019
2 parents 38ccd91 + 7886b62 commit ab6730e
Show file tree
Hide file tree
Showing 781 changed files with 9,188 additions and 9,123 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Company.WinFormsApplication1
static class Program
{
/// <summary>
/// The main entry point for the application.
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
Expand Down
24 changes: 12 additions & 12 deletions src/Common/src/ClientUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,10 @@ public WeakRefCollection(int size)
public ArrayList InnerList { get; }

/// <summary>
/// Indicates the value where the collection should check its items to remove dead weakref left over.
/// Note: When GC collects weak refs from this collection the WeakRefObject identity changes since its
/// Target becomes null. This makes the item unrecognizable by the collection and cannot be
/// removed - Remove(item) and Contains(item) will not find it anymore.
/// Indicates the value where the collection should check its items to remove dead weakref left over.
/// Note: When GC collects weak refs from this collection the WeakRefObject identity changes since its
/// Target becomes null. This makes the item unrecognizable by the collection and cannot be
/// removed - Remove(item) and Contains(item) will not find it anymore.
/// </summary>
public int RefCheckThreshold { get; set; } = int.MaxValue; // this means this is disabled by default.

Expand Down Expand Up @@ -416,10 +416,10 @@ private static void Copy(WeakRefCollection sourceList, int sourceIndex, WeakRefC
}

/// <summary>
/// Removes the value using its hash code as its identity. This is needed because the
/// underlying item in the collection may have already been collected changing the
/// identity of the WeakRefObject making it impossible for the collection to identify
/// it. See WeakRefObject for more info.
/// Removes the value using its hash code as its identity. This is needed because the
/// underlying item in the collection may have already been collected changing the
/// identity of the WeakRefObject making it impossible for the collection to identify
/// it. See WeakRefObject for more info.
/// </summary>
public void RemoveByHashCode(object value)
{
Expand Down Expand Up @@ -476,10 +476,10 @@ public int Add(object value)
public IEnumerator GetEnumerator() => InnerList.GetEnumerator();

/// <summary>
/// Wraps a weak ref object. WARNING: Use this class carefully!
/// When the weak ref is collected, this object looses its identity. This is bad when the object
/// has been added to a collection since Contains(WeakRef(item)) and Remove(WeakRef(item)) would
/// not be able to identify the item.
/// Wraps a weak ref object. WARNING: Use this class carefully!
/// When the weak ref is collected, this object looses its identity. This is bad when the object
/// has been added to a collection since Contains(WeakRef(item)) and Remove(WeakRef(item)) would
/// not be able to identify the item.
/// </summary>
internal class WeakRefObject
{
Expand Down
8 changes: 4 additions & 4 deletions src/Common/src/CommonUnsafeNativeMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ internal class CommonUnsafeNativeMethods
internal static extern bool AreDpiAwarenessContextsEqual(DpiAwarenessContext dpiContextA, DpiAwarenessContext dpiContextB);

/// <summary>
/// Tries to compare two DPIawareness context values. Return true if they were equal.
/// Return false when they are not equal or underlying OS does not support this API.
/// Tries to compare two DPIawareness context values. Return true if they were equal.
/// Return false when they are not equal or underlying OS does not support this API.
/// </summary>
/// <returns>true/false</returns>
public static bool TryFindDpiAwarenessContextsEqual(DpiAwarenessContext dpiContextA, DpiAwarenessContext dpiContextB)
Expand All @@ -47,7 +47,7 @@ public static bool TryFindDpiAwarenessContextsEqual(DpiAwarenessContext dpiConte
}

/// <summary>
/// Tries to get thread dpi awareness context
/// Tries to get thread dpi awareness context
/// </summary>
/// <returns> returns thread dpi awareness context if API is available in this version of OS. otherwise, return IntPtr.Zero.</returns>
public static DpiAwarenessContext TryGetThreadDpiAwarenessContext()
Expand All @@ -64,7 +64,7 @@ public static DpiAwarenessContext TryGetThreadDpiAwarenessContext()
}

/// <summary>
/// Tries to set thread dpi awareness context
/// Tries to set thread dpi awareness context
/// </summary>
/// <returns> returns old thread dpi awareness context if API is available in this version of OS. otherwise, return IntPtr.Zero.</returns>
public static DpiAwarenessContext TrySetThreadDpiAwarenessContext(DpiAwarenessContext dpiContext)
Expand Down
14 changes: 7 additions & 7 deletions src/Common/src/DpiHelper.DpiAwarenessContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
namespace System.Windows.Forms
{
/// <summary>
/// Partial DpiHelper class, with methods specific to thread DpiAwarenessContext
/// Partial DpiHelper class, with methods specific to thread DpiAwarenessContext
/// </summary>
internal static partial class DpiHelper
{
/// <summary>
/// Enters a scope during which the current thread's DPI awareness context is set to
/// Enters a scope during which the current thread's DPI awareness context is set to
/// <paramref name="awareness"/>
/// </summary>
/// <param name="awareness">The new DPI awareness for the current thread</param>
/// <returns>An object that, when disposed, will reset the current thread's
/// DPI awareness to the value it had when the object was created.</returns>
/// DPI awareness to the value it had when the object was created.</returns>
public static IDisposable EnterDpiAwarenessScope(DpiAwarenessContext awareness)
{
return new DpiAwarenessScope(awareness);
Expand All @@ -39,15 +39,15 @@ public static T CreateInstanceInSystemAwareContext<T>(Func<T> createInstance)
#region Scoping DpiAwareness context helper class

/// <summary>
/// Class that help setting Dpi awareness context scope
/// Class that help setting Dpi awareness context scope
/// </summary>
private class DpiAwarenessScope : IDisposable
{
private bool dpiAwarenessScopeIsSet = false;
private readonly DpiAwarenessContext originalAwareness = DpiAwarenessContext.DPI_AWARENESS_CONTEXT_UNSPECIFIED;

/// <summary>
/// Enters given Dpi awareness scope
/// Enters given Dpi awareness scope
/// </summary>
public DpiAwarenessScope(DpiAwarenessContext awareness)
{
Expand All @@ -73,15 +73,15 @@ public DpiAwarenessScope(DpiAwarenessContext awareness)
}

/// <summary>
/// Dispose object and resources
/// Dispose object and resources
/// </summary>
public void Dispose()
{
ResetDpiAwarenessContextChanges();
}

/// <summary>
/// resetting dpiawareness of the thread.
/// resetting dpiawareness of the thread.
/// </summary>
private void ResetDpiAwarenessContextChanges()
{
Expand Down
44 changes: 22 additions & 22 deletions src/Common/src/DpiHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
namespace System.Windows.Forms
{
/// <summary>
/// Helper class for scaling coordinates and images according to current DPI scaling set in Windows for the primary screen.
/// Helper class for scaling coordinates and images according to current DPI scaling set in Windows for the primary screen.
/// </summary>
internal static partial class DpiHelper
{
Expand All @@ -20,7 +20,7 @@ internal static partial class DpiHelper
private static bool s_isInitializeDpiHelperForWinforms = false;

/// <summary>
/// The primary screen's (device) current DPI
/// The primary screen's (device) current DPI
/// </summary>
private static double s_deviceDpi = LogicalDpi;
private static double s_logicalToDeviceUnitsScalingFactor = 0.0;
Expand Down Expand Up @@ -79,7 +79,7 @@ internal static bool DoesCurrentContextRequireScaling
=> true;

/// <summary>
/// Returns a boolean to specify if we should enable processing of WM_DPICHANGED and related messages
/// Returns a boolean to specify if we should enable processing of WM_DPICHANGED and related messages
/// </summary>
internal static bool IsPerMonitorV2Awareness
{
Expand All @@ -101,7 +101,7 @@ internal static bool IsPerMonitorV2Awareness
}

/// <summary>
/// Indicates, if rescaling becomes necessary, either because we are not 96 DPI or we're PerMonitorV2Aware.
/// Indicates, if rescaling becomes necessary, either because we are not 96 DPI or we're PerMonitorV2Aware.
/// </summary>
internal static bool IsScalingRequirementMet
{
Expand Down Expand Up @@ -197,8 +197,8 @@ private static Bitmap CreateScaledBitmap(Bitmap logicalImage, int deviceDpi = 0)
}

/// <summary>
/// Returns whether scaling is required when converting between logical-device units,
/// if the application opted in the automatic scaling in the .config file.
/// Returns whether scaling is required when converting between logical-device units,
/// if the application opted in the automatic scaling in the .config file.
/// </summary>
public static bool IsScalingRequired
{
Expand All @@ -210,8 +210,8 @@ public static bool IsScalingRequired
}

/// <summary>
/// Transforms a horizontal or vertical integer coordinate from logical to device units
/// by scaling it up for current DPI and rounding to nearest integer value
/// Transforms a horizontal or vertical integer coordinate from logical to device units
/// by scaling it up for current DPI and rounding to nearest integer value
/// </summary>
/// <param name="value">value in logical units</param>
/// <returns>value in device units</returns>
Expand All @@ -226,8 +226,8 @@ public static int LogicalToDeviceUnits(int value, int devicePixels = 0)
}

/// <summary>
/// Transforms a horizontal integer coordinate from logical to device units
/// by scaling it up for current DPI and rounding to nearest integer value
/// Transforms a horizontal integer coordinate from logical to device units
/// by scaling it up for current DPI and rounding to nearest integer value
/// </summary>
/// <param name="value">The horizontal value in logical units</param>
/// <returns>The horizontal value in device units</returns>
Expand All @@ -237,8 +237,8 @@ public static int LogicalToDeviceUnitsX(int value)
}

/// <summary>
/// Transforms a vertical integer coordinate from logical to device units
/// by scaling it up for current DPI and rounding to nearest integer value
/// Transforms a vertical integer coordinate from logical to device units
/// by scaling it up for current DPI and rounding to nearest integer value
/// </summary>
/// <param name="value">The vertical value in logical units</param>
/// <returns>The vertical value in device units</returns>
Expand All @@ -248,8 +248,8 @@ public static int LogicalToDeviceUnitsY(int value)
}

/// <summary>
/// Returns a new Size with the input's
/// dimensions converted from logical units to device units.
/// Returns a new Size with the input's
/// dimensions converted from logical units to device units.
/// </summary>
/// <param name="logicalSize">Size in logical units</param>
/// <returns>Size in device units</returns>
Expand All @@ -260,7 +260,7 @@ public static Size LogicalToDeviceUnits(Size logicalSize, int deviceDpi = 0)
}

/// <summary>
/// Create and return a new bitmap scaled to the specified size.
/// Create and return a new bitmap scaled to the specified size.
/// </summary>
/// <param name="logicalImage">The image to scale from logical units to device units</param>
/// <param name="targetImageSize">The size to scale image to</param>
Expand All @@ -275,7 +275,7 @@ public static Bitmap CreateResizedBitmap(Bitmap logicalImage, Size targetImageSi
}

/// <summary>
/// Creating bitmap from Icon resource
/// Creating bitmap from Icon resource
/// </summary>
public static Bitmap GetBitmapFromIcon(Type t, string name)
{
Expand All @@ -286,8 +286,8 @@ public static Bitmap GetBitmapFromIcon(Type t, string name)
}

/// <summary>
/// Create a new bitmap scaled for the device units.
/// When displayed on the device, the scaled image will have same size as the original image would have when displayed at 96dpi.
/// Create a new bitmap scaled for the device units.
/// When displayed on the device, the scaled image will have same size as the original image would have when displayed at 96dpi.
/// </summary>
/// <param name="logicalBitmap">The image to scale from logical units to device units</param>
public static void ScaleBitmapLogicalToDevice(ref Bitmap logicalBitmap, int deviceDpi = 0)
Expand All @@ -305,13 +305,13 @@ public static void ScaleBitmapLogicalToDevice(ref Bitmap logicalBitmap, int devi
}

/// <summary>
/// Set, when the first (Parking)Window has been created. From that moment on,
/// we will not be able nor allow to change the Process' DpiMode.
/// Set, when the first (Parking)Window has been created. From that moment on,
/// we will not be able nor allow to change the Process' DpiMode.
/// </summary>
internal static bool FirstParkingWindowCreated { get; set; }

/// <summary>
/// Gets the DPI awareness.
/// Gets the DPI awareness.
/// </summary>
/// <returns>The thread's/process' current HighDpi mode</returns>
internal static HighDpiMode GetWinformsApplicationDpiAwareness()
Expand Down Expand Up @@ -372,7 +372,7 @@ internal static HighDpiMode GetWinformsApplicationDpiAwareness()
}

/// <summary>
/// Sets the DPI awareness. If not available on the current OS, it falls back to the next possible.
/// Sets the DPI awareness. If not available on the current OS, it falls back to the next possible.
/// </summary>
/// <returns>true/false - If the process DPI awareness is successfully set, returns true. Otherwise false.</returns>
internal static bool SetWinformsApplicationDpiAwareness(HighDpiMode highDpiMode)
Expand Down
14 changes: 7 additions & 7 deletions src/Common/src/FileDialog_Vista_Interop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class FileSaveDialogRCW
}

/// <summary>
/// IID GUID strings for relevant COM interfaces
/// IID GUID strings for relevant COM interfaces
/// </summary>
public static class IIDGuid
{
Expand Down Expand Up @@ -71,17 +71,17 @@ public interface IModalWindow
public enum SIATTRIBFLAGS
{
/// <summary>
/// Multiple items and the attributes together.
/// Multiple items and the attributes together.
/// </summary>
SIATTRIBFLAGS_AND = 0x00000001,

/// <summary>
/// Multiple items or the attributes together.
/// Multiple items or the attributes together.
/// </summary>
SIATTRIBFLAGS_OR = 0x00000002,

/// <summary>
/// Call GetAttributes directly on the ShellFolder for multiple attributes
/// Call GetAttributes directly on the ShellFolder for multiple attributes
/// <summary>
SIATTRIBFLAGS_APPCOMPAT = 0x00000003
}
Expand Down Expand Up @@ -297,9 +297,9 @@ public interface IFileSaveDialog : IFileDialog
#pragma warning restore 108

/// <remarks>
/// Some of these callbacks are cancelable - returning S_FALSE means that the dialog should
/// not proceed (e.g. with closing, changing folder); to support this, we need to use the
/// PreserveSig attribute to enable us to return the proper HRESULT
/// Some of these callbacks are cancelable - returning S_FALSE means that the dialog should
/// not proceed (e.g. with closing, changing folder); to support this, we need to use the
/// PreserveSig attribute to enable us to return the proper HRESULT
/// </remarks>
[ComImport]
[Guid(IIDGuid.IFileDialogEvents)]
Expand Down
10 changes: 5 additions & 5 deletions src/Common/src/Interop/Interop.BOOL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
internal partial class Interop
{
/// <summary>
/// Blittable version of Windows BOOL type. It is convenient in situations where
/// manual marshalling is required, or to avoid overhead of regular bool marshalling.
/// Blittable version of Windows BOOL type. It is convenient in situations where
/// manual marshalling is required, or to avoid overhead of regular bool marshalling.
/// </summary>
/// <remarks>
/// Some Windows APIs return arbitrary integer values although the return type is defined
/// as BOOL. It is best to never compare BOOL to TRUE. Always use bResult != BOOL.FALSE
/// or bResult == BOOL.FALSE .
/// Some Windows APIs return arbitrary integer values although the return type is defined
/// as BOOL. It is best to never compare BOOL to TRUE. Always use bResult != BOOL.FALSE
/// or bResult == BOOL.FALSE .
/// </remarks>
internal enum BOOL : int
{
Expand Down
4 changes: 2 additions & 2 deletions src/Common/src/Interop/Interop.EditMessages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
internal static partial class Interop
{
/// <summary>
/// Edit Control Messages.
/// Copied form winuser.h
/// Edit Control Messages.
/// Copied form winuser.h
/// </summary>
public static class EditMessages
{
Expand Down
4 changes: 2 additions & 2 deletions src/Common/src/Interop/Interop.RichEditMessages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
internal static partial class Interop
{
/// <summary>
/// RichTextBox Control Messages. Note that some messages have the same name but different value compared to normal Edit Control Messages.
/// Copied form richedit.h
/// RichTextBox Control Messages. Note that some messages have the same name but different value compared to normal Edit Control Messages.
/// Copied form richedit.h
/// </summary>
public static class RichEditMessages
{
Expand Down
Loading

0 comments on commit ab6730e

Please sign in to comment.