コード例 #1
0
ファイル: MemberInfo.cs プロジェクト: fjgandrade/sharpkit
		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);
			}
		}
コード例 #2
0
 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);
         }
     }
 }