Exemplo n.º 1
0
 public static Type FindIdentifier(this IBHoMObject o, Type adapterIdType)
 {
     if (adapterIdType == null)
     {
         return(o.FindIdentifier());
     }
     else if (!typeof(IAdapterId).IsAssignableFrom(adapterIdType))
     {
         Reflection.Compute.RecordError("The provided adapterIdType need to be a type of IAdapterId.");
         return(null);
     }
     return(adapterIdType);
 }