public IMethod Resolve(ISolutionSnapshotWithProjectMapping solutionSnapshot)
        {
            ICompilation compilation    = solutionSnapshot.GetCompilation(parentProject.Project);
            IMethod      resolvedMethod = method.Resolve(new SimpleTypeResolveContext(compilation.MainAssembly));

            return(resolvedMethod);
        }
        public ITypeDefinition Resolve(ISolutionSnapshotWithProjectMapping solutionSnapshot)
        {
            ICompilation compilation = solutionSnapshot.GetCompilation(parentProject.Project);
            IType        type        = compilation.MainAssembly.GetTypeDefinition(fullTypeName);

            return(type.GetDefinition());
        }
		public IMethod Resolve(ISolutionSnapshotWithProjectMapping solutionSnapshot)
		{
			ICompilation compilation = solutionSnapshot.GetCompilation(parentProject.Project);
			IMethod resolvedMethod = method.Resolve(new SimpleTypeResolveContext(compilation.MainAssembly));
			return resolvedMethod;
		}
Exemple #4
0
		public ITypeDefinition Resolve(ISolutionSnapshotWithProjectMapping solutionSnapshot)
		{
			ICompilation compilation = solutionSnapshot.GetCompilation(parentProject.Project);
			IType type = compilation.MainAssembly.GetTypeDefinition(fullTypeName);
			return type.GetDefinition();
		}