示例#1
0
文件: Facet.cs 项目: Nagabhushana/nag
        public Facet(string key, FacetValue value)
        {
            Guard.NotEmpty(key, nameof(key));
            Guard.NotNull(value, nameof(value));

            Key       = key;
            Value     = value;
            Children  = new List <Facet>();
            IsChoice  = true;
            Published = true;
        }
示例#2
0
文件: Facet.cs 项目: Nagabhushana/nag
 public Facet(FacetValue value)
     : this(value.ToString(), value)
 {
 }