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
36// Updated LoadImplementations() method to add support for attributes.36// Updated LoadImplementations() method to add support for attributes.
37// 12/14/2012 - Starlynn Danyelle Gilliam37// 12/14/2012 - Starlynn Danyelle Gilliam
38// Modified Header.38// 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.
39//42//
40//******************************************************************************************************43//******************************************************************************************************
41 44
@@ -190,7 +193,7 @@ namespace GSF · 148 unmodified lines
190 types.Add(asmType);193 types.Add(asmType);
191 }194 }
192 195
193 if (type.IsInterface && (object)asmType.GetInterface(type.Name) != null)196 if (type.IsInterface && (object)asmType.GetInterface(type.FullName) != null)
194 {197 {
195 // The type being tested is an interface and current type implements it.198 // The type being tested is an interface and current type implements it.
196 types.Add(asmType);199 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