This repository has been archived by the owner on Oct 16, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
try List<ItemWithCommand> for filtering nodes
- Loading branch information
1 parent
dd45b72
commit b964a68
Showing
4 changed files
with
177 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Created by SharpDevelop. | ||
* User: Peter Forstmeier | ||
* Date: 25.12.2011 | ||
* Time: 19:07 | ||
* | ||
* To change this template use Tools | Options | Coding | Edit Standard Headers. | ||
*/ | ||
using System; | ||
using System.Linq; | ||
using System.Collections.Generic; | ||
using System.Collections.ObjectModel; | ||
|
||
namespace ICSharpCode.CodeQualityAnalysis.Utility | ||
{ | ||
/// <summary> | ||
/// Description of testclass. | ||
/// </summary> | ||
public class testclass | ||
{ | ||
public testclass(Module mainModule) | ||
{ | ||
MainModule = mainModule; | ||
} | ||
|
||
public Module MainModule {get; private set;} | ||
|
||
public ObservableCollection <INode> QueryMethod() | ||
{ | ||
IEnumerable<INode> list = new List<INode>(); | ||
list = from ns in MainModule.Namespaces | ||
from type in ns.Types | ||
from method in type.Methods | ||
select method; | ||
return new ObservableCollection <INode>(list); | ||
} | ||
} | ||
} |