Custom properties are stored in the SolarWinds database as well.
You can update custom properties directly from SQL Server Management Studio.
Or from the Orion Database Manager tool.
Or from PowerShell.
So if you want to populate custom properties with values via .NET code, the code must connect to the database, issue an UPDATE query, so basically, yes, it is possible.