public static FactoryTypeInfoWeaverBase Create(BuilderType componentType, ComponentAttributeValues componentAttributeValue) =>
 Create("", componentType, componentAttributeValue, @params =>
 {
     if (@params.componentType.HasGenericParameters)
     {
         return(new FactoryTypeInfoWeaverGeneric(componentAttributeValue, @params.componentInfoType, @params.componentInfoType.CreateConstructor().NewCoder(), componentType, @params.childType));
     }
     else
     {
         return(new FactoryTypeInfoWeaverDefault(componentAttributeValue, @params.componentInfoType, @params.componentInfoType.CreateConstructor().NewCoder(), componentType, @params.childType));
     }
 });
示例#2
0
 internal FactoryTypeInfoWeaverBase(ComponentAttributeValues componentAttributeValue, BuilderType componentInfoType, Coder componentTypeCtor, BuilderType componentType, (TypeReference childType, bool isSuccessful) childType)
 public static FactoryTypeInfoWeaverBase Create(
     string @namespace,
     BuilderType componentType,
     ComponentAttributeValues componentAttributeValue,
     Func <(ComponentAttributeValues componentAttributeValue, BuilderType componentInfoType, BuilderType componentType, (TypeReference childType, bool isSuccessful) childType), FactoryTypeInfoWeaverBase> typeInfoWeaver)