History

GSF.Core: - Update LoadImplementations in TypeExtensions to use FQN when checking if a Type implements a specific interface to avoid namespace collisions.

pinalcpatel committed 11 years ago

Commit 4edec4e1 parent f8505ae1 file · +4 −1Browse files

Unified · Split

Source/Libraries/GSF.Core/TypeExtensions.cs+4−1
@@ -36,6 +36,9 @@ · 35 unmodified lines
3636 // Updated LoadImplementations() method to add support for attributes.
3737 // 12/14/2012 - Starlynn Danyelle Gilliam
3838 // Modified Header.
39+// 06/30/2009 - Pinal C. Patel
40+// Update LoadImplementations to use FQN when checking if a Type implements a specific interface
41+// to avoid namespace collisions.
3942 //
4043 //******************************************************************************************************
4144
@@ -190,7 +193,7 @@ namespace GSF · 148 unmodified lines
190193 types.Add(asmType);
191194 }
192195
193− if (type.IsInterface && (object)asmType.GetInterface(type.Name) != null)
196+ if (type.IsInterface && (object)asmType.GetInterface(type.FullName) != null)
194197 {
195198 // The type being tested is an interface and current type implements it.
196199 types.Add(asmType);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t