.net - Reflection to add/set new custom attributes -


i trying figure way add new custom attribute @ runtime, realize might impossible settle adding customer attribute bit want try override/set size

my class this

public class poco1      <stringlength(15)>     property firstname string      property lastname string  end class 

i try like

dim lname stringlengthattribute = new stringlengthattribute(50)  dim last propertyinfo = this.getproperty(("lastname")).add(lname) 


Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -