You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b955779
Browse filesBrowse the repository at this point in the historyBrowse files
Add symbol list view interfaces and refactor list classes
Introduced IConstructorListView, IFieldListView, IPropertyListView, and ITypeListView interfaces for strongly-typed, immutable access to symbol data views. Added ISymbolViewProvider<TSymbolView> for exposing View properties. Refactored list and builder classes to enforce declaring type consistency, updated equality and indexer logic to use reference equality and views, and improved error handling. Implemented new list view classes and enhanced querying methods for improved type safety and usability.
$"At least one item in the argument sequence '{nameof(items)}' has a different value for the '{nameof(IConstructorDataView.DeclaringType)}' declaring type handle. All constructors must belong to the same declaring type.");
$"At least one item in the argument sequence '{nameof(items)}' has a different value for the '{nameof(IConstructorDataView.DeclaringType)}' declaring type handle. All constructors must belong to the same declaring type.");
Copy file name to clipboardExpand all lines: src/BionicCode.Utilities.Reflection/EventListBuilder.cs
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,11 @@ public static EventList Create(IEnumerable<EventInfo>? items)
51
51
events.Add(eventData);
52
52
}
53
53
54
+
if(declaringTypeisnull)
55
+
{
56
+
thrownewArgumentException($"The argument '{nameof(items)}' contains invalid items. Reason: Unable to determine the declaring type of the provided '{nameof(EventInfo)}' items.");
0 commit comments