public static MetadataTypeProxy GetMetadataType(SoapMetadataType soapMetadataType) { lock (_padlock) { if (_nodeTypes == null) { _nodeTypes = new Dictionary<Guid, MetadataTypeProxy>(); } MetadataTypeProxy nodeType; if (_nodeTypes.ContainsKey(soapMetadataType.Id)) { nodeType = _nodeTypes[soapMetadataType.Id]; } else { nodeType = new MetadataTypeProxy(soapMetadataType); _nodeTypes[soapMetadataType.Id] = nodeType; } return nodeType; } }
public static MetadataTypeProxy GetMetadataType(SoapMetadataType soapMetadataType) { lock (_padlock) { if (_nodeTypes == null) { _nodeTypes = new Dictionary <Guid, MetadataTypeProxy>(); } MetadataTypeProxy nodeType; if (_nodeTypes.ContainsKey(soapMetadataType.Id)) { nodeType = _nodeTypes[soapMetadataType.Id]; } else { nodeType = new MetadataTypeProxy(soapMetadataType); _nodeTypes[soapMetadataType.Id] = nodeType; } return(nodeType); } }