3 types derived from MaskDescriptor
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\MaskDescriptorTemplate.cs (1)
11
internal class MaskDescriptorTemplate :
MaskDescriptor
System.Windows.Forms.Design.Tests (2)
System\Windows\Forms\Design\MaskDescriptorComparerTests.cs (1)
10
internal class TestMaskDescriptor :
MaskDescriptor
System\Windows\Forms\Design\MaskDescriptorTests.cs (1)
24
private class ConcreteMaskDescriptor :
MaskDescriptor
37 references to MaskDescriptor
System.Design (1)
artifacts\obj\System.Design.Facade\Release\net9.0\System.Design.Forwards.cs (1)
96
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Windows.Forms.Design.
MaskDescriptor
))]
System.Windows.Forms.Design (33)
System\Windows\Forms\Design\MaskDescriptor.cs (4)
54
public static bool IsValidMaskDescriptor([NotNullWhen(true)]
MaskDescriptor
? maskDescriptor)
59
public static bool IsValidMaskDescriptor([NotNullWhen(true)]
MaskDescriptor
? maskDescriptor, out string validationErrorDescription)
134
MaskDescriptor
? descriptor = maskDescriptor as
MaskDescriptor
;
System\Windows\Forms\Design\MaskDescriptorComparer.cs (8)
10
internal class MaskDescriptorComparer : IComparer<
MaskDescriptor
>
28
public int Compare(
MaskDescriptor
? maskDescriptorA,
MaskDescriptor
? maskDescriptorB)
67
public static int GetHashCode(
MaskDescriptor
maskDescriptor)
78
public static bool Equals(
MaskDescriptor
? maskDescriptorA,
MaskDescriptor
? maskDescriptorB)
80
if (!
MaskDescriptor
.IsValidMaskDescriptor(maskDescriptorA) || !
MaskDescriptor
.IsValidMaskDescriptor(maskDescriptorB))
System\Windows\Forms\Design\MaskDescriptorTemplate.cs (2)
51
public static List<
MaskDescriptor
> GetLocalizedMaskDescriptors(CultureInfo culture)
315
public List<
MaskDescriptor
> List { get; } = [];
System\Windows\Forms\Design\MaskDesignerDialog.cs (19)
33
private readonly List<
MaskDescriptor
> _maskDescriptors = [];
326
List<
MaskDescriptor
> maskDescriptors = MaskDescriptorTemplate.GetLocalizedMaskDescriptors(culture);
332
foreach (
MaskDescriptor
maskDescriptor in maskDescriptors)
341
private bool ContainsMaskDescriptor(
MaskDescriptor
maskDescriptor)
348
foreach (
MaskDescriptor
descriptor in _maskDescriptors)
373
ICollection descriptors = DesignerUtils.FilterGenericTypes(discoveryService.GetTypes(typeof(
MaskDescriptor
), false /* excludeGlobalTypes */));
387
MaskDescriptor
maskDescriptor = (
MaskDescriptor
)Activator.CreateInstance(t)!;
399
private int GetMaskDescriptorIndex(
MaskDescriptor
maskDescriptor)
403
MaskDescriptor
descriptor = _maskDescriptors[index];
426
MaskDescriptor
descriptor = _maskDescriptors[selectedIndex];
455
private void SetSelectedMaskDescriptor(
MaskDescriptor
maskDex)
483
MaskDescriptor
? selectedMaskDex = null;
509
foreach (
MaskDescriptor
maskDescriptor in _maskDescriptors)
543
private void InsertMaskDescriptor(int index,
MaskDescriptor
maskDescriptor)
548
private void InsertMaskDescriptor(int index,
MaskDescriptor
maskDescriptor, bool validateDescriptor)
550
if (validateDescriptor && !
MaskDescriptor
.IsValidMaskDescriptor(maskDescriptor))
621
MaskDescriptor
maskDescriptor = _maskDescriptors[selectedIndex];
707
MaskDescriptor
? selectedMaskDex = null;
System.Windows.Forms.Design.Tests (3)
System\Windows\Forms\Design\MaskDescriptorComparerTests.cs (2)
77
MaskDescriptor
? maskDescriptorA = nameA is null ? null : new TestMaskDescriptor(nameA, "SampleA", typeof(int));
78
MaskDescriptor
? maskDescriptorB = nameB is null ? null : new TestMaskDescriptor(nameB, "SampleB", typeof(int));
System\Windows\Forms\Design\MaskDescriptorTests.cs (1)
83
bool isValid =
MaskDescriptor
.IsValidMaskDescriptor(maskDescriptor, out string validationErrorDescription);