Rename accessors
This commit is contained in:
27
src/Umbraco.Core/Models/PublishedContent/VariationContext.cs
Normal file
27
src/Umbraco.Core/Models/PublishedContent/VariationContext.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
namespace Umbraco.Core.Models.PublishedContent
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents the variation context.
|
||||
/// </summary>
|
||||
public class VariationContext
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="VariationContext"/> class.
|
||||
/// </summary>
|
||||
public VariationContext(string culture = null, string segment = null)
|
||||
{
|
||||
Culture = culture ?? ""; // cannot be null, default to invariant
|
||||
Segment = segment ?? ""; // cannot be null, default to neutral
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the culture.
|
||||
/// </summary>
|
||||
public string Culture { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the segment.
|
||||
/// </summary>
|
||||
public string Segment { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user