MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / CreateInstance

Method CreateInstance

TexturedFontEditor/Helper.cs:390–393  ·  view source on GitHub ↗
(ITypeDescriptorContext context, IDictionary propertyValues)

Source from the content-addressed store, hash-verified

388 return base.ConvertTo(context, culture, value, destinationType);
389 }
390 public override object CreateInstance(ITypeDescriptorContext context, IDictionary propertyValues)
391 {
392 return Color.FromArgb((byte)propertyValues["A"], (byte)propertyValues["R"], (byte)propertyValues["G"], (byte)propertyValues["B"]);
393 }
394 public override bool GetCreateInstanceSupported(ITypeDescriptorContext context)
395 {
396 return true;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected