public override XamlType GetXamlType(Type type)
 {
     if (type == null)
     {
         throw FxTrace.Exception.AsError(new ArgumentNullException("type"));
     }
     XamlNsReplacingType xamlType = null;
     if (!MasterTypeList.TryGetValue(type, out xamlType))
     {
         xamlType = new XamlNsReplacingType(type, this, localAssemblyName, realAssemblyName);
         MasterTypeList.Add(type, xamlType);
     }
     return xamlType;
 }
示例#2
0
        public override XamlType GetXamlType(Type type)
        {
            if (type == null)
            {
                throw FxTrace.Exception.AsError(new ArgumentNullException("type"));
            }
            XamlNsReplacingType xamlType = null;

            if (!MasterTypeList.TryGetValue(type, out xamlType))
            {
                xamlType = new XamlNsReplacingType(type, this, localAssemblyName, realAssemblyName);
                MasterTypeList.Add(type, xamlType);
            }
            return(xamlType);
        }