Please show us the code that is not working (either your code, the sample you found, or both).
SQL Anywhere 12 comes with sample code in this folder...
C:\Users\Public\Documents\SQL Anywhere 12\Samples\SQLAnywhere\ExternalEnvironments\CLR
If that is the sample that is not working for you, please post the symptom.