Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion eng/DefaultGenApiDocIds.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// These attributes should be excluded from reference assemblies.

T:System.ComponentModel.DesignerAttribute
T:System.ComponentModel.Design.Serialization.DesignerSerializerAttribute
T:System.ComponentModel.Design.Serialization.RootDesignerSerializerAttribute
T:System.ComponentModel.EditorAttribute
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,20 @@ public DescriptionAttribute(string description) { }
public override int GetHashCode() { throw null; }
public override bool IsDefaultAttribute() { throw null; }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Interface, AllowMultiple=true, Inherited=true)]
public sealed partial class DesignerAttribute : System.Attribute
{
public DesignerAttribute(string designerTypeName) { }
public DesignerAttribute(string designerTypeName, string designerBaseTypeName) { }
public DesignerAttribute(string designerTypeName, System.Type designerBaseType) { }
public DesignerAttribute(System.Type designerType) { }
public DesignerAttribute(System.Type designerType, System.Type designerBaseType) { }
public string DesignerBaseTypeName { get { throw null; } }
public string DesignerTypeName { get { throw null; } }
public override object TypeId { get { throw null; } }
public override bool Equals(object? obj) { throw null; }
public override int GetHashCode() { throw null; }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
public sealed partial class DesignerCategoryAttribute : System.Attribute
{
Expand Down Expand Up @@ -153,6 +167,8 @@ public void AddHandlers(System.ComponentModel.EventHandlerList listToAddFrom) {
public void Dispose() { }
public void RemoveHandler(object key, System.Delegate? value) { }
}
[System.ComponentModel.DesignerAttribute("System.ComponentModel.Design.ComponentDesigner, System.Design, Version=4.0.0.0, PublicKeyToken=b03f5f7f11d50a3a")]
[System.ComponentModel.DesignerAttribute("System.Windows.Forms.Design.ComponentDocumentDesigner, System.Design, Version=4.0.0.0, PublicKeyToken=b03f5f7f11d50a3a")]
[System.ComponentModel.TypeConverterAttribute("System.ComponentModel.ComponentConverter, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public partial interface IComponent : System.IDisposable
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<Compile Include="System\ComponentModel\Component.cs" />
<Compile Include="System\ComponentModel\ComponentCollection.cs" />
<Compile Include="System\ComponentModel\DescriptionAttribute.cs" />
<Compile Include="System\ComponentModel\DesignerAttribute.cs" />
<Compile Include="System\ComponentModel\DesignerCategoryAttribute.cs" />
<Compile Include="System\ComponentModel\DesignerSerializationVisibility.cs" />
<Compile Include="System\ComponentModel\DesignerSerializationVisibilityAttribute.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace System.ComponentModel
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = true, Inherited = true)]
public sealed class DesignerAttribute : Attribute
{
private string _typeId;
private string? _typeId;

/// <summary>
/// Initializes a new instance of the <see cref='System.ComponentModel.DesignerAttribute'/> class using the name of the type that
Expand All @@ -20,7 +20,7 @@ public sealed class DesignerAttribute : Attribute
public DesignerAttribute(string designerTypeName)
{
DesignerTypeName = designerTypeName ?? throw new ArgumentNullException(nameof(designerTypeName));
DesignerBaseTypeName = typeof(IDesigner).FullName;
DesignerBaseTypeName = "System.ComponentModel.Design.IDesigner, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089";
}

/// <summary>
Expand All @@ -34,8 +34,8 @@ public DesignerAttribute(Type designerType)
throw new ArgumentNullException(nameof(designerType));
}

DesignerTypeName = designerType.AssemblyQualifiedName;
DesignerBaseTypeName = typeof(IDesigner).FullName;
DesignerTypeName = designerType.AssemblyQualifiedName!;
DesignerBaseTypeName = "System.ComponentModel.Design.IDesigner, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089";
}

/// <summary>
Expand Down Expand Up @@ -64,7 +64,7 @@ public DesignerAttribute(string designerTypeName, Type designerBaseType)
}

DesignerTypeName = designerTypeName;
DesignerBaseTypeName = designerBaseType.AssemblyQualifiedName;
DesignerBaseTypeName = designerBaseType.AssemblyQualifiedName!;
}

/// <summary>
Expand All @@ -82,8 +82,8 @@ public DesignerAttribute(Type designerType, Type designerBaseType)
throw new ArgumentNullException(nameof(designerBaseType));
}

DesignerTypeName = designerType.AssemblyQualifiedName;
DesignerBaseTypeName = designerBaseType.AssemblyQualifiedName;
DesignerTypeName = designerType.AssemblyQualifiedName!;
DesignerBaseTypeName = designerBaseType.AssemblyQualifiedName!;
}

/// <summary>
Expand Down Expand Up @@ -121,7 +121,7 @@ public override object TypeId
}
}

public override bool Equals(object obj)
public override bool Equals(object? obj)
{
if (obj == this)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ namespace System.ComponentModel
/// provided "site".
/// Provides functionality required by all components.
/// </summary>
[Designer("System.ComponentModel.Design.ComponentDesigner, System.Design, Version=4.0.0.0, PublicKeyToken=b03f5f7f11d50a3a")]
[Designer("System.Windows.Forms.Design.ComponentDocumentDesigner, System.Design, Version=4.0.0.0, PublicKeyToken=b03f5f7f11d50a3a")]
[TypeConverter("System.ComponentModel.ComponentConverter, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public interface IComponent : IDisposable
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<Compile Include="System\ComponentModel\ComponentCollectionTests.cs" />
<Compile Include="System\ComponentModel\ComponentTests.cs" />
<Compile Include="System\ComponentModel\DescriptionAttributeTests.cs" />
<Compile Include="System\ComponentModel\DesignerAttributeTests.cs" />
<Compile Include="System\ComponentModel\DesignerCategoryAttributeTests.cs" />
<Compile Include="System\ComponentModel\DesignerSerializationVisibilityAttributeTests.cs" />
<Compile Include="System\ComponentModel\DesignOnlyAttributeTests.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public void Ctor_String(string designerTypeName)
{
var attribute = new DesignerAttribute(designerTypeName);
Assert.Equal(designerTypeName, attribute.DesignerTypeName);
Assert.Equal(typeof(IDesigner).FullName, attribute.DesignerBaseTypeName);
Assert.Equal("System.ComponentModel.Design.IDesigner, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", attribute.DesignerBaseTypeName);
}

[Theory]
Expand All @@ -28,7 +28,7 @@ public void Ctor_Type(Type designerType)
{
var attribute = new DesignerAttribute(designerType);
Assert.Equal(designerType.AssemblyQualifiedName, attribute.DesignerTypeName);
Assert.Equal(typeof(IDesigner).FullName, attribute.DesignerBaseTypeName);
Assert.Equal("System.ComponentModel.Design.IDesigner, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", attribute.DesignerBaseTypeName);
}

[Theory]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
// Changes to this file must follow the https://aka.ms/api-review process.
// ------------------------------------------------------------------------------

[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Component))]
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.DesignerAttribute))]
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.InvalidAsynchronousStateException))]
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.InvalidEnumArgumentException))]
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.Component))]
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.ISupportInitialize))]
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.TypeConverterAttribute))]
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.TypeDescriptionProviderAttribute))]
Original file line number Diff line number Diff line change
Expand Up @@ -381,20 +381,6 @@ public DefaultPropertyAttribute(string name) { }
public override bool Equals(object obj) { throw null; }
public override int GetHashCode() { throw null; }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Interface, AllowMultiple=true, Inherited=true)]
public sealed partial class DesignerAttribute : System.Attribute
{
public DesignerAttribute(string designerTypeName) { }
public DesignerAttribute(string designerTypeName, string designerBaseTypeName) { }
public DesignerAttribute(string designerTypeName, System.Type designerBaseType) { }
public DesignerAttribute(System.Type designerType) { }
public DesignerAttribute(System.Type designerType, System.Type designerBaseType) { }
public string DesignerBaseTypeName { get { throw null; } }
public string DesignerTypeName { get { throw null; } }
public override object TypeId { get { throw null; } }
public override bool Equals(object obj) { throw null; }
public override int GetHashCode() { throw null; }
}
[System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Interface)]
public sealed partial class DesignTimeVisibleAttribute : System.Attribute
{
Expand Down Expand Up @@ -833,6 +819,7 @@ public LookupBindingPropertiesAttribute(string dataSource, string displayMember,
public override bool Equals(object obj) { throw null; }
public override int GetHashCode() { throw null; }
}
[System.ComponentModel.DesignerAttribute("System.Windows.Forms.Design.ComponentDocumentDesigner, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.ComponentModel.Design.IRootDesigner))]
[System.ComponentModel.DesignerCategoryAttribute("Component")]
[System.ComponentModel.TypeConverterAttribute(typeof(System.ComponentModel.ComponentConverter))]
public partial class MarshalByValueComponent : System.ComponentModel.IComponent, System.IDisposable, System.IServiceProvider
Expand Down Expand Up @@ -1349,9 +1336,9 @@ public sealed partial class TypeDescriptor
internal TypeDescriptor() { }
[System.ObsoleteAttribute("This property has been deprecated. Use a type description provider to supply type information for COM types instead. https://go.microsoft.com/fwlink/?linkid=14202")]
public static System.ComponentModel.IComNativeDescriptorHandler ComNativeDescriptorHandler { get { throw null; } set { } }
public static System.Type ComObjectType { get { throw null; } }
public static System.Type ComObjectType { [return: System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] get { throw null; } }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public static System.Type InterfaceType { get { throw null; } }
public static System.Type InterfaceType { [return: System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] get { throw null; } }
public static event System.ComponentModel.RefreshEventHandler Refreshed { add { } remove { } }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public static System.ComponentModel.TypeDescriptionProvider AddAttributes(object instance, params System.Attribute[] attributes) { throw null; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@
<Compile Include="System\ComponentModel\DataObjectMethodAttribute.cs" />
<Compile Include="System\ComponentModel\DataObjectMethodType.cs" />
<Compile Include="System\ComponentModel\DefaultBindingPropertyAttribute.cs" />
<Compile Include="System\ComponentModel\DesignerAttribute.cs" />
Comment thread
ericstj marked this conversation as resolved.
Resolved
<Compile Include="System\ComponentModel\DesignTimeVisibleAttribute.cs" />
<Compile Include="System\ComponentModel\Design\IDesigner.cs" />
<Compile Include="System\ComponentModel\Design\DesignerVerbCollection.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@
<AssemblyVersion>9.9.9.9</AssemblyVersion>
<TargetFrameworks>$(NetCoreAppCurrent)</TargetFrameworks>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFramework)' == '$(NetCoreAppCurrent)'">
<ItemGroup>
<Compile Include="Drawing\ColorConverterTests.cs" />
<Compile Include="Drawing\PointConverterTests.cs" />
<Compile Include="Drawing\RectangleConverterTests.cs" />
<Compile Include="Drawing\SizeConverterTests.cs" />
<Compile Include="Drawing\SizeFConverterTests.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="Design\Serialization\ComponentSerializationServiceTests.cs" />
<Compile Include="Design\StandardCommandsTests.cs" />
<Compile Include="Extensions\EnumeratorExtensions.cs" />
Expand Down Expand Up @@ -72,7 +70,6 @@
<Compile Include="DefaultEventAttributeTests.cs" />
<Compile Include="EditorAttributeTests.cs" />
<Compile Include="DesignTimeVisibleAttributeTests.cs" />
<Compile Include="DesignerAttributeTests.cs" />
<Compile Include="DefaultPropertyAttributeTests.cs" />
<Compile Include="Design\DesignerTransactionCloseEventArgsTests.cs" />
<Compile Include="Design\DesignerVerbTests.cs" />
Expand Down
15 changes: 9 additions & 6 deletions src/libraries/System.Data.Common/ref/System.Data.Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public sealed partial class ConstraintCollection : System.Data.InternalDataColle
{
internal ConstraintCollection() { }
public System.Data.Constraint this[int index] { get { throw null; } }
public System.Data.Constraint this[string name] { get { throw null; } }
public System.Data.Constraint? this[string? name] { get { throw null; } }
protected override System.Collections.ArrayList List { get { throw null; } }
public event System.ComponentModel.CollectionChangeEventHandler? CollectionChanged { add { } remove { } }
public void Add(System.Data.Constraint constraint) { }
Expand Down Expand Up @@ -167,7 +167,7 @@ internal DataColumnCollection() { }
public System.Data.DataColumn this[int index] { get { throw null; } }
public System.Data.DataColumn? this[string name] { get { throw null; } }
protected override System.Collections.ArrayList List { get { throw null; } }
public event System.ComponentModel.CollectionChangeEventHandler CollectionChanged { add { } remove { } }
public event System.ComponentModel.CollectionChangeEventHandler? CollectionChanged { add { } remove { } }
public System.Data.DataColumn Add() { throw null; }
public void Add(System.Data.DataColumn column) { }
public System.Data.DataColumn Add(string? columnName) { throw null; }
Expand Down Expand Up @@ -261,7 +261,7 @@ public abstract partial class DataRelationCollection : System.Data.InternalDataC
{
protected DataRelationCollection() { }
public abstract System.Data.DataRelation this[int index] { get; }
public abstract System.Data.DataRelation? this[string name] { get; }
public abstract System.Data.DataRelation? this[string? name] { get; }
public event System.ComponentModel.CollectionChangeEventHandler? CollectionChanged { add { } remove { } }
public virtual System.Data.DataRelation Add(System.Data.DataColumn parentColumn, System.Data.DataColumn childColumn) { throw null; }
public virtual System.Data.DataRelation Add(System.Data.DataColumn[] parentColumns, System.Data.DataColumn[] childColumns) { throw null; }
Expand All @@ -274,7 +274,7 @@ protected virtual void AddCore(System.Data.DataRelation relation) { }
public virtual void AddRange(System.Data.DataRelation[]? relations) { }
public virtual bool CanRemove(System.Data.DataRelation? relation) { throw null; }
public virtual void Clear() { }
public virtual bool Contains(string name) { throw null; }
public virtual bool Contains(string? name) { throw null; }
public void CopyTo(System.Data.DataRelation[] array, int index) { }
protected abstract System.Data.DataSet GetDataSet();
public virtual int IndexOf(System.Data.DataRelation? relation) { throw null; }
Expand Down Expand Up @@ -378,8 +378,8 @@ internal DataRowCollection() { }
public void Add(System.Data.DataRow row) { }
public System.Data.DataRow Add(params object?[] values) { throw null; }
public void Clear() { }
public bool Contains(object key) { throw null; }
public bool Contains(object[] keys) { throw null; }
public bool Contains(object? key) { throw null; }
public bool Contains(object?[] keys) { throw null; }
public override void CopyTo(System.Array ar, int index) { }
public void CopyTo(System.Data.DataRow[] array, int index) { }
public System.Data.DataRow? Find(object? key) { throw null; }
Expand Down Expand Up @@ -477,6 +477,7 @@ public void EndEdit() { }
object System.ComponentModel.ICustomTypeDescriptor.GetPropertyOwner(System.ComponentModel.PropertyDescriptor pd) { throw null; }
#nullable enable
}
[System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.Data.VS.DataSetDesigner, Microsoft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[System.ComponentModel.DefaultPropertyAttribute("DataSetName")]
[System.Xml.Serialization.XmlRootAttribute("DataSet")]
[System.Xml.Serialization.XmlSchemaProviderAttribute("GetDataSetSchema")]
Expand Down Expand Up @@ -868,6 +869,7 @@ public override void Close() { }
public override bool NextResult() { throw null; }
public override bool Read() { throw null; }
}
[System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.Data.VS.DataViewDesigner, Microsoft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[System.ComponentModel.DefaultEventAttribute("PositionChanged")]
[System.ComponentModel.DefaultPropertyAttribute("Table")]
public partial class DataView : System.ComponentModel.MarshalByValueComponent, System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList, System.ComponentModel.IBindingList, System.ComponentModel.IBindingListView, System.ComponentModel.ISupportInitialize, System.ComponentModel.ISupportInitializeNotification, System.ComponentModel.ITypedList
Expand Down Expand Up @@ -965,6 +967,7 @@ void System.ComponentModel.IBindingListView.RemoveFilter() { }
protected void UpdateIndex() { }
protected virtual void UpdateIndex(bool force) { }
}
[System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.Data.VS.DataViewManagerDesigner, Microsoft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public partial class DataViewManager : System.ComponentModel.MarshalByValueComponent, System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList, System.ComponentModel.IBindingList, System.ComponentModel.ITypedList
{
public DataViewManager() { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ namespace System.Data
/// <summary>
/// Represents an in-memory cache of data.
/// </summary>
[Designer("Microsoft.VSDesigner.Data.VS.DataSetDesigner, Microsoft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[DefaultProperty(nameof(DataSetName))]
[Serializable]
[XmlSchemaProvider(nameof(GetDataSetSchema))]
Expand Down
Loading