Skip to content

Commit 4689efa

Browse files
committed
Add nullable annotation based off documentation
1 parent 41ae1ae commit 4689efa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/Design/Serialization/IDesignerSerializationManager.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,30 +71,30 @@ public interface IDesignerSerializationManager : IServiceProvider
7171
/// of named instances. Objects that implement IComponent will be
7272
/// added to the design time container if addToContainer is true.
7373
/// </summary>
74-
object CreateInstance(Type type, ICollection arguments, string name, bool addToContainer);
74+
object CreateInstance(Type type, ICollection arguments, string? name, bool addToContainer);
7575

7676
/// <summary>
7777
/// Retrieves an instance of a created object of the given name, or
7878
/// null if that object does not exist.
7979
/// </summary>
80-
object GetInstance(string name);
80+
object? GetInstance(string name);
8181

8282
/// <summary>
8383
/// Retrieves a name for the specified object, or null if the object
8484
/// has no name.
8585
/// </summary>
86-
string GetName(object value);
86+
string? GetName(object value);
8787

8888
/// <summary>
8989
/// Retrieves a serializer of the requested type for the given
9090
/// object type.
9191
/// </summary>
92-
object GetSerializer(Type objectType, Type serializerType);
92+
object? GetSerializer(Type objectType, Type serializerType);
9393

9494
/// <summary>
9595
/// Retrieves a type of the given name.
9696
/// </summary>
97-
Type GetType(string typeName);
97+
Type? GetType(string typeName);
9898

9999
/// <summary>
100100
/// Removes a previously added serialization provider.

0 commit comments

Comments
 (0)