Search This Blog

Wednesday, June 29, 2016

PlantUML Set ForeColor and BackColor

PlantUML > Set ForeColor and BackColor


Font Color in Participants 


This example will set font color to white and background color to some custom color.

participant "<color:#white>Setup" as Setup #FD9A00

Tuesday, June 7, 2016

C# get property value from object using reflection

C# > Reflection > Property Info > GetValue

Returns the property value of a specified object.

Example

Get property value from object using reflection.


private static object GetPropValue(object src, string propName)
{
   return src.GetType().GetProperty(propName).GetValue(src, null);
}