C# Class ArcGISRuntime.Samples.Models.SampleModelExtensions

Extension methods for SampleModel
Show file Open project: Esri/arcgis-runtime-samples-dotnet

Public Methods

Method Description
GetSampleFolderInRelativeSolution ( this model ) : string

Gets the relative path to the solution folder where sample is located.

This assumes that output folder is 3 levels from the repository root folder ie. repositoryRoot\output\desktop\debug

GetSampleName ( this model, System.Language language = Language.CSharp ) : string
GetSamplesCodeBehindFileName ( this model, System.Language language = Language.CSharp ) : string

Gets the name of the C# code behind file.

GetSamplesXamlFileName ( this model, System.Language language = Language.CSharp ) : string

Gets the name of C# the xaml file.

Method Details

GetSampleFolderInRelativeSolution() public static method

Gets the relative path to the solution folder where sample is located.
This assumes that output folder is 3 levels from the repository root folder ie. repositoryRoot\output\desktop\debug
public static GetSampleFolderInRelativeSolution ( this model ) : string
model this
return string

GetSampleName() public static method

public static GetSampleName ( this model, System.Language language = Language.CSharp ) : string
model this
language System.Language
return string

GetSamplesCodeBehindFileName() public static method

Gets the name of the C# code behind file.
public static GetSamplesCodeBehindFileName ( this model, System.Language language = Language.CSharp ) : string
model this
language System.Language
return string

GetSamplesXamlFileName() public static method

Gets the name of C# the xaml file.
public static GetSamplesXamlFileName ( this model, System.Language language = Language.CSharp ) : string
model this
language System.Language
return string