示例#1
0
        public IEnumerable <ICodeAidTypeInfo> GetTypesInXmlNamespace(string xmlNamespaceString)
        {
            IProjectContext project = this.ProjectContext;

            foreach (IType type in this.AllTypesInProject())
            {
                if (CodeAidProvider.IsTypeInXmlNamespace(project, type, xmlNamespaceString))
                {
                    yield return((ICodeAidTypeInfo) new CodeAidTypeInfo(this, type));
                }
            }
        }
示例#2
0
 public IEnumerable <ICodeAidTypeInfo> GetAttachedPropertyTypesInXmlNamespace(string uri)
 {
     return(Enumerable.Cast <ICodeAidTypeInfo>((IEnumerable)Enumerable.Select <IType, CodeAidTypeInfo>(Enumerable.Where <IType>(this.GetAllAttachedPropertyTypesInProject(), (Func <IType, bool>)(type => CodeAidProvider.IsTypeInXmlNamespace(this.ProjectContext, type, uri))), (Func <IType, CodeAidTypeInfo>)(type => new CodeAidTypeInfo(this, type)))));
 }