System.Yaml.YamlTagPrefixes.Debug.Assert C# (CSharp) Méthode

Assert() public static méthode

public static Assert ( bool condition, string message ) : void
condition bool
message string
Résultat void
            public static void Assert(bool condition, string message)
            {
                if ( !condition )
                    throw new Exception("assertion failed: " + message);
            }

Same methods

YamlTagPrefixes.Debug::Assert ( bool condition ) : void
YamlTagPrefixes.Debug