private void AddCustomAttributes(List<object> list, JsImplType attributeType, bool inherit) { VerifyCustomAttributes(); if (_CustomAttributes != null) { for (var i = 0; i < _CustomAttributes.length; i++) { var att = _CustomAttributes[i]; if (attributeType.IsInstanceOfType(att)) list.Add(att); } } if (inherit) { var bm = GetBaseMember(); if (bm != null) bm.AddCustomAttributes(list, attributeType, inherit); } }
private void AddCustomAttributes(List <object> list, JsImplType attributeType, bool inherit) { VerifyCustomAttributes(); if (_CustomAttributes != null) { for (var i = 0; i < _CustomAttributes.length; i++) { var att = _CustomAttributes[i]; if (attributeType.IsInstanceOfType(att)) { list.Add(att); } } } if (inherit) { var bm = GetBaseMember(); if (bm != null) { bm.AddCustomAttributes(list, attributeType, inherit); } } }