Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 5ed1718

Browse files
committed
TryGetService should allow null returns.
1 parent 5bcdc02 commit 5ed1718

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/GitHub.VisualStudio/Services/UIProvider.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ public T GetService<T>()
142142
return (T)GetService(typeof(T));
143143
}
144144

145+
[return: AllowNull]
145146
public T TryGetService<T>() where T : class
146147
{
147148
return TryGetService(typeof(T)) as T;

0 commit comments

Comments
 (0)