System.ASSERT.FRIEND C# (CSharp) Method

FRIEND() private method

private FRIEND ( string ns ) : void
ns string
return void
        internal static void FRIEND(string ns)
        {
            StackTrace trace = new StackTrace();
            string text1 = trace.GetFrame(1).GetMethod().DeclaringType.Namespace;
            string str = trace.GetFrame(2).GetMethod().DeclaringType.Namespace;
            Assert(str.Equals(str) || str.Equals(ns), Environment.GetResourceString("RtType.InvalidCaller"), trace.ToString());
        }

Same methods

ASSERT::FRIEND ( Type friends ) : void