Class BestPracticeCollection
Inheritance
BestPracticeCollection
Assembly: TabularEditor3.Shared.dll
Syntax
public sealed class BestPracticeCollection : IEnumerable<BestPracticeRule>, IEnumerable
Constructors
BestPracticeCollection()
Declaration
public BestPracticeCollection()
Properties
AllowEdit
Declaration
public bool AllowEdit { get; set; }
Property Value
FilePath
Declaration
public string FilePath { get; }
Property Value
Internal
Declaration
public bool Internal { get; set; }
Property Value
this[string]
Declaration
public BestPracticeRule this[string ruleId] { get; }
Parameters
Type |
Name |
Description |
string |
ruleId |
|
Property Value
Name
Declaration
public string Name { get; set; }
Property Value
Rules
Declaration
public List<BestPracticeRule> Rules { get; }
Property Value
Url
Declaration
public string Url { get; set; }
Property Value
Methods
Add(BestPracticeRule)
Declaration
public void Add(BestPracticeRule rule)
Parameters
AddFromJsonFile(string)
Declaration
public void AddFromJsonFile(string filePath)
Parameters
Type |
Name |
Description |
string |
filePath |
|
Contains(string)
Declaration
public bool Contains(string Id)
Parameters
Type |
Name |
Description |
string |
Id |
|
Returns
GetCollectionFromFile(string, string)
Declaration
public static BestPracticeCollection GetCollectionFromFile(string basePath, string fileName)
Parameters
Returns
GetCollectionFromJson(string, string)
Declaration
public static BestPracticeCollection GetCollectionFromJson(string url, string json)
Parameters
Returns
GetCollectionFromUrlAsync(string)
Declaration
public static Task<BestPracticeCollection> GetCollectionFromUrlAsync(string url)
Parameters
Type |
Name |
Description |
string |
url |
|
Returns
GetCurrentModelCollection(Model)
Declaration
public static BestPracticeCollection GetCurrentModelCollection(Model model)
Parameters
Type |
Name |
Description |
Model |
model |
|
Returns
GetEnumerator()
Declaration
public IEnumerator<BestPracticeRule> GetEnumerator()
Returns
GetUrlAsync(string)
Declaration
public static Task<string> GetUrlAsync(string url)
Parameters
Type |
Name |
Description |
string |
url |
|
Returns
Save(string)
Declaration
public bool Save(string basePath)
Parameters
Type |
Name |
Description |
string |
basePath |
|
Returns
SerializeToJson()
Declaration
public string SerializeToJson()
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements
Extension Methods