# How to remove "unchecked " on cs target on every class?

**URL:** https://community.haxe.org/t/how-to-remove-unchecked-on-cs-target-on-every-class/2150
**Category:** Haxe
**Tags:** haxe-cs
**Created:** [November 20, 2019, 9:50am UTC](https://community.haxe.org/t/how-to-remove-unchecked-on-cs-target-on-every-class/2150 "2019-11-20T09:50:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Zhan](https://community.haxe.org/user_avatar/community.haxe.org/zhan/32/468_2.png) [@Zhan](https://community.haxe.org/u/Zhan)
#### Post date: [November 20, 2019, 9:50am UTC](https://community.haxe.org/t/how-to-remove-unchecked-on-cs-target-on-every-class/2150/1 "2019-11-20T09:50:03Z")

</div>

how to remove “uncheck” on cs target?

there is nothing about this

> **[Haxe/C# Defines - Haxe - The Cross-platform Toolkit](https://haxe.org/manual/target-cs-defines.html)**
>
> Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.

![image](https://community.haxe.org/uploads/default/original/2X/4/4845690238aa6731e4185b000aebaf46a9da4de0.png)

---

<div class="post-metadata">

### Author: ![ibilon](https://community.haxe.org/user_avatar/community.haxe.org/ibilon/32/13_2.png) [@ibilon](https://community.haxe.org/u/ibilon)
#### Post date: [November 20, 2019, 11:41am UTC](https://community.haxe.org/t/how-to-remove-unchecked-on-cs-target-on-every-class/2150/2 "2019-11-20T11:41:35Z")

</div>

Why do you want to do that? There is a good chance it’s there so that the code actually compiles.

If you want to have cleaner code, especially if using it in a c# project you can add `@:nativeGen` to your classes, it should remove it.  
See [Haxe/C# Metadata - Haxe - The Cross-platform Toolkit](https://haxe.org/manual/target-cs-metadata.html) for more details.
