Пример #1
0
 public OpenXmlPartData(Type type, Func <Type, OpenXmlElementData> dataFactory)
 {
     _constraints = new Lazy <PartConstraintCollection>(() => PartConstraintCollection.Create <PartConstraintAttribute>(dataFactory, type), true);
     _dataParts   = new Lazy <PartConstraintCollection>(() => PartConstraintCollection.Create <DataPartConstraintAttribute>(dataFactory, type), true);
 }
Пример #2
0
 public OpenXmlPartData(Type type)
 {
     _constraints = new Lazy <PartConstraintCollection>(() => PartConstraintCollection.Create <PartConstraintAttribute>(type), true);
     _dataParts   = new Lazy <PartConstraintCollection>(() => PartConstraintCollection.Create <DataPartConstraintAttribute>(type), true);
 }