Mono.CSharp.MemberCore.IsNotCLSCompliant C# (CSharp) Метод

IsNotCLSCompliant() публичный метод

Goes through class hierarchy and gets value of first found CLSCompliantAttribute. If no is attribute exists then assembly CLSCompliantAttribute is returned.
public IsNotCLSCompliant ( ) : bool
Результат bool
		public bool IsNotCLSCompliant ()
		{
			if ((caching_flags & Flags.HasCompliantAttribute_Undetected) == 0)
				return (caching_flags & Flags.ClsCompliantAttributeFalse) != 0;

			caching_flags &= ~Flags.HasCompliantAttribute_Undetected;

			if (OptAttributes != null) {
				Attribute cls_attribute = OptAttributes.Search (Module.PredefinedAttributes.CLSCompliant);
				if (cls_attribute != null) {
					caching_flags |= Flags.HasClsCompliantAttribute;
					if (cls_attribute.GetClsCompliantAttributeValue ())
						return false;

					caching_flags |= Flags.ClsCompliantAttributeFalse;
					return true;
				}
			}

			return false;
		}