C# Class ICSharpCode.NRefactory.CSharp.CSharpProjectContent

Inheritance: IProjectContent
Show file Open project: 0xd4d/NRefactory Class Usage Examples

Private Properties

Property Type Description
IAssemblyReference IAssembly
UpdateProjectContent IProjectContent
UpdateProjectContent IProjectContent

Public Methods

Method Description
AddAssemblyReferences ( ) : IProjectContent
AddAssemblyReferences ( IEnumerable references ) : IProjectContent
AddOrUpdateFiles ( ) : IProjectContent

Adds the specified files to the project content. If a file with the same name already exists, this method updates the existing file.

AddOrUpdateFiles ( IEnumerable newFiles ) : IProjectContent

Adds the specified files to the project content. If a file with the same name already exists, updated the existing file.

CSharpProjectContent ( ) : System
CreateCompilation ( ) : ICompilation
CreateCompilation ( ISolutionSnapshot solutionSnapshot ) : ICompilation
GetFile ( string fileName ) : IUnresolvedFile
RemoveAssemblyReferences ( ) : IProjectContent
RemoveAssemblyReferences ( IEnumerable references ) : IProjectContent
RemoveFiles ( ) : IProjectContent

Removes the files with the specified names.

RemoveFiles ( IEnumerable fileNames ) : IProjectContent

Removes the files with the specified names.

SetAssemblyName ( string newAssemblyName ) : IProjectContent

Sets both the short and the full assembly names.

SetCompilerSettings ( object compilerSettings ) : IProjectContent
SetLocation ( string newLocation ) : IProjectContent
SetProjectFileName ( string newProjectFileName ) : IProjectContent

Protected Methods

Method Description
CSharpProjectContent ( CSharpProjectContent pc ) : System
Clone ( ) : CSharpProjectContent

Private Methods

Method Description
IAssemblyReference ( ITypeResolveContext context ) : IAssembly
UpdateProjectContent ( IEnumerable oldFiles, IEnumerable newFiles ) : IProjectContent
UpdateProjectContent ( IUnresolvedFile oldFile, IUnresolvedFile newFile ) : IProjectContent

Method Details

AddAssemblyReferences() public method

public AddAssemblyReferences ( ) : IProjectContent
return IProjectContent

AddAssemblyReferences() public method

public AddAssemblyReferences ( IEnumerable references ) : IProjectContent
references IEnumerable
return IProjectContent

AddOrUpdateFiles() public method

Adds the specified files to the project content. If a file with the same name already exists, this method updates the existing file.
public AddOrUpdateFiles ( ) : IProjectContent
return IProjectContent

AddOrUpdateFiles() public method

Adds the specified files to the project content. If a file with the same name already exists, updated the existing file.
public AddOrUpdateFiles ( IEnumerable newFiles ) : IProjectContent
newFiles IEnumerable
return IProjectContent

CSharpProjectContent() public method

public CSharpProjectContent ( ) : System
return System

CSharpProjectContent() protected method

protected CSharpProjectContent ( CSharpProjectContent pc ) : System
pc CSharpProjectContent
return System

Clone() protected method

protected Clone ( ) : CSharpProjectContent
return CSharpProjectContent

CreateCompilation() public method

public CreateCompilation ( ) : ICompilation
return ICompilation

CreateCompilation() public method

public CreateCompilation ( ISolutionSnapshot solutionSnapshot ) : ICompilation
solutionSnapshot ISolutionSnapshot
return ICompilation

GetFile() public method

public GetFile ( string fileName ) : IUnresolvedFile
fileName string
return IUnresolvedFile

RemoveAssemblyReferences() public method

public RemoveAssemblyReferences ( ) : IProjectContent
return IProjectContent

RemoveAssemblyReferences() public method

public RemoveAssemblyReferences ( IEnumerable references ) : IProjectContent
references IEnumerable
return IProjectContent

RemoveFiles() public method

Removes the files with the specified names.
public RemoveFiles ( ) : IProjectContent
return IProjectContent

RemoveFiles() public method

Removes the files with the specified names.
public RemoveFiles ( IEnumerable fileNames ) : IProjectContent
fileNames IEnumerable
return IProjectContent

SetAssemblyName() public method

Sets both the short and the full assembly names.
public SetAssemblyName ( string newAssemblyName ) : IProjectContent
newAssemblyName string New full assembly name.
return IProjectContent

SetCompilerSettings() public method

public SetCompilerSettings ( object compilerSettings ) : IProjectContent
compilerSettings object
return IProjectContent

SetLocation() public method

public SetLocation ( string newLocation ) : IProjectContent
newLocation string
return IProjectContent

SetProjectFileName() public method

public SetProjectFileName ( string newProjectFileName ) : IProjectContent
newProjectFileName string
return IProjectContent