VerifyClsCompliance() public méthode

public VerifyClsCompliance ( IMemberContext ctx ) : void
ctx IMemberContext
Résultat void
Exemple #1
0
		//TODO: duplicate
		protected override bool VerifyClsCompliance ()
		{
			if (!base.VerifyClsCompliance ()) {
				return false;
			}

			parameters.VerifyClsCompliance (this);

			if (!InvokeBuilder.MemberType.IsCLSCompliant ()) {
				Report.Warning (3002, 1, Location, "Return type of `{0}' is not CLS-compliant",
					GetSignatureForError ());
			}
			return true;
		}
Exemple #2
0
        //TODO: duplicate
        protected override bool VerifyClsCompliance()
        {
            if (!base.VerifyClsCompliance())
            {
                return(false);
            }

            Parameters.VerifyClsCompliance();

            if (!AttributeTester.IsClsCompliant(ReturnType.Type))
            {
                Report.Warning(3002, 1, Location, "Return type of `{0}' is not CLS-compliant",
                               GetSignatureForError());
            }
            return(true);
        }