BootstrapComponents.Core.HtmlAttributes.Any C# (CSharp) Метод

Any() публичный Метод

public Any ( HtmlAttribute>.Func func = null ) : bool
func HtmlAttribute>.Func
Результат bool
        public bool Any(Func<KeyValuePair<string, HtmlAttribute>, bool> func = null)
        {
            return func == null ? _attributes.Any() : _attributes.Any(func);
        }

Usage Example

 public void ImplementAnyMethod()
 {
     var attributes = new HtmlAttributes(new {  });
     Assert.IsFalse(attributes.Any());
     attributes["test"] = "test";
     Assert.IsTrue(attributes.Any());
     Assert.IsFalse(attributes.Any(x => x.Key == "fail"));
 }
All Usage Examples Of BootstrapComponents.Core.HtmlAttributes::Any