Well, guys, have some problem with reflection.
I have some struct StructName. Some method has optional parameters and looks like
public double Method(StructName d1, StructName d2, StructName d3 = new StructName(), StructName d4 = new StructName())
Need to get default values of optional parameters via reflection, but I get null in DefaultValue. How I can get these default values?
Aucun commentaire:
Enregistrer un commentaire