Beispiel #1
0
        internal SOSDac GetSOSInterfaceNoAddRef()
        {
            if (_sos == null)
            {
                _sos = InternalDacPrivateInterface.GetSOSDacInterface();
            }

            return(_sos);
        }
Beispiel #2
0
        private SOSDac GetSOSInterfaceNoAddRef()
        {
            if (_sos is null)
            {
                _sos = InternalDacPrivateInterface.GetSOSDacInterface();
                if (_sos is null)
                {
                    throw new InvalidOperationException("This runtime does not support ISOSDac.");
                }
            }

            return(_sos);
        }