Class UsingStatementAdder
Inheritance
object
UsingStatementAdder
Implements
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Cli.ProjectModification
Assembly: Volo.Abp.Cli.Core.dll
Syntax
public class UsingStatementAdder : ITransientDependency
Constructors
UsingStatementAdder()
Declaration
public UsingStatementAdder()
Methods
Add(string, string)
Declaration
public string Add(string fileContent, string nameSpace)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fileContent | |
| string | nameSpace |
Returns
| Type | Description |
|---|---|
| string |
GetIndexOfTheEndOfTheLastUsingStatement(string)
Declaration
protected virtual int GetIndexOfTheEndOfTheLastUsingStatement(string fileContent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fileContent |
Returns
| Type | Description |
|---|---|
| int |
GetUsingStatement(string)
Declaration
protected virtual string GetUsingStatement(string nameSpace)
Parameters
| Type | Name | Description |
|---|---|---|
| string | nameSpace |
Returns
| Type | Description |
|---|---|
| string |