C# Class ArcGISRuntime.Samples.Models.SampleModelExtensions

Extension methods for SampleModel
Afficher le fichier Open project: Esri/arcgis-runtime-samples-dotnet

Méthodes publiques

Méthode 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 méthode

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
Résultat string

GetSampleName() public static méthode

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

GetSamplesCodeBehindFileName() public static méthode

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
Résultat string

GetSamplesXamlFileName() public static méthode

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