Unified docstrings
This commit is contained in:
@@ -2,50 +2,50 @@
|
||||
|
||||
namespace HopFrame.Core.Configurators;
|
||||
|
||||
/**
|
||||
* The configurator for the <see cref="PropertyConfig"/>
|
||||
*/
|
||||
/// <summary>
|
||||
/// The configurator for the <see cref="PropertyConfig"/>
|
||||
/// </summary>
|
||||
public class PropertyConfigurator(PropertyConfig config) {
|
||||
/** The internal config that is modified */
|
||||
/// The internal config that is modified
|
||||
public PropertyConfig Config { get; } = config;
|
||||
|
||||
/** <inheritdoc cref="PropertyConfig.DisplayName" /> */
|
||||
/// <inheritdoc cref="PropertyConfig.DisplayName" />
|
||||
public PropertyConfigurator SetDisplayName(string displayName) {
|
||||
Config.DisplayName = displayName;
|
||||
return this;
|
||||
}
|
||||
|
||||
/** <inheritdoc cref="PropertyConfig.Listable" /> */
|
||||
/// <inheritdoc cref="PropertyConfig.Listable" />
|
||||
public PropertyConfigurator Listable(bool listable) {
|
||||
Config.Listable = listable;
|
||||
return this;
|
||||
}
|
||||
|
||||
/** <inheritdoc cref="PropertyConfig.Sortable" /> */
|
||||
/// <inheritdoc cref="PropertyConfig.Sortable" />
|
||||
public PropertyConfigurator Sortable(bool sortable) {
|
||||
Config.Sortable = sortable;
|
||||
return this;
|
||||
}
|
||||
|
||||
/** <inheritdoc cref="PropertyConfig.Searchable" /> */
|
||||
/// <inheritdoc cref="PropertyConfig.Searchable" />
|
||||
public PropertyConfigurator Searchable(bool searchable) {
|
||||
Config.Searchable = searchable;
|
||||
return this;
|
||||
}
|
||||
|
||||
/** <inheritdoc cref="PropertyConfig.Editable" /> */
|
||||
/// <inheritdoc cref="PropertyConfig.Editable" />
|
||||
public PropertyConfigurator Editable(bool editable) {
|
||||
Config.Editable = editable;
|
||||
return this;
|
||||
}
|
||||
|
||||
/** <inheritdoc cref="PropertyConfig.Creatable" /> */
|
||||
/// <inheritdoc cref="PropertyConfig.Creatable" />
|
||||
public PropertyConfigurator Creatable(bool creatable) {
|
||||
Config.Creatable = creatable;
|
||||
return this;
|
||||
}
|
||||
|
||||
/** <inheritdoc cref="PropertyConfig.OrderIndex" /> */
|
||||
/// <inheritdoc cref="PropertyConfig.OrderIndex" />
|
||||
public PropertyConfigurator SetOrderIndex(int index) {
|
||||
Config.OrderIndex = index;
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user