Class EntityPathHelper
A set of entity path utilities.
Namespace: Evergine.Framework.Helpers
Assembly: Evergine.Framework.dll
Syntax
public class EntityPathHelper
Methods
PathFromEntity(Entity)
Gets the (absolute) entity path of the desired entity.
Declaration
public static string PathFromEntity(Entity entity)
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The entity. |
Returns
Type | Description |
---|---|
string | The path. |
RelativePathFromEntity(Entity, Entity)
Gets the relative path from the source entity to the target entity.
Declaration
public static string RelativePathFromEntity(Entity target, Entity source)
Parameters
Type | Name | Description |
---|---|---|
Entity | target | The target entity. |
Entity | source | The source entity. |
Returns
Type | Description |
---|---|
string | The relative path. |
RelativePathFromEntityPath(List<string>, List<string>)
Gets the relative path from the source entity to the target entity.
Declaration
public static string RelativePathFromEntityPath(List<string> targetBreadcrumbs, List<string> sourceBreadcrumbs)
Parameters
Type | Name | Description |
---|---|---|
List<string> | targetBreadcrumbs | The target entity's breadcrumbs. |
List<string> | sourceBreadcrumbs | The source entity's breadcrumbs. |
Returns
Type | Description |
---|---|
string | The relative path. |
RelativePathFromEntityPath(string, string)
Gets the relative path from the source entity to the target entity.
Declaration
public static string RelativePathFromEntityPath(string target, string source)
Parameters
Type | Name | Description |
---|---|---|
string | target | The target entity. |
string | source | The source entity. |
Returns
Type | Description |
---|---|
string | The relative path. |