namespace System.Runtime.Remoting
{
+ [System.Runtime.InteropServices.ComVisible (true)]
public class InternalRemotingServices
{
- static Hashtable _soapAttributes;
+ static Hashtable _soapAttributes = new Hashtable ();
public InternalRemotingServices ()
{
}
public static SoapAttribute GetCachedSoapAttribute (object reflectionObject)
- {
- if (_soapAttributes == null)
- {
- lock (typeof(InternalRemotingServices))
- {
- if (_soapAttributes == null)
- _soapAttributes = new Hashtable ();
- }
- }
-
- lock (_soapAttributes.SyncRoot)
- {
+ {
+ lock (_soapAttributes.SyncRoot) {
SoapAttribute att = _soapAttributes [reflectionObject] as SoapAttribute;
if (att != null) return att;