コード例 #1
0
 public static ComponentBasedSystems.SystemIndependent.Type ToDataType(Pcm.Repository.IDataType cmType)
 {
     //functional helper
     return((cmType == null) ?
            default(ComponentBasedSystems.SystemIndependent.Type) : ((cmType is Pcm.Repository.ICollectionDataType) ?
                                                                     (ComponentBasedSystems.SystemIndependent.Type.EList) : ((cmType is Pcm.Repository.ICompositeDataType) ?
                                                                                                                             (ComponentBasedSystems.SystemIndependent.Type.EComplex) : ((cmType is Pcm.Repository.IPrimitiveDataType) ?
                                                                                                                                                                                        (HelperExtensionMethods.DataTypeMap()[((Pcm.Repository.IPrimitiveDataType)cmType).Type.ToString()]) : default(ComponentBasedSystems.SystemIndependent.Type)))));
 }