/***************************************************/ /**** Public methods ****/ /***************************************************/ public static Type InstanceType(this ElementType elementType) { Type type = elementType.GetType(); if (InstanceTypes.ContainsKey(type)) { return(InstanceTypes[type]); } else { return(null); } }