public static void SetTypeDNCallbacks(Func<Type, TypeEntity> toTypeEntity, Func<TypeEntity, Type> toType) { TypeEntity.ToTypeDNFunc = toTypeEntity; TypeEntity.ToTypeFunc = toType; } }