Rhino.ScriptRuntime.CheckDeprecated C# (CSharp) Method

CheckDeprecated() static private method

static private CheckDeprecated ( Context cx, string name ) : void
cx Context
name string
return void
		internal static void CheckDeprecated(Context cx, string name)
		{
			int version = cx.GetLanguageVersion();
			if (version >= Context.VERSION_1_4 || version == Context.VERSION_DEFAULT)
			{
				string msg = GetMessage1("msg.deprec.ctor", name);
				if (version == Context.VERSION_DEFAULT)
				{
					Context.ReportWarning(msg);
				}
				else
				{
					throw Context.ReportRuntimeError(msg);
				}
			}
		}
ScriptRuntime