C# Odd method call casting -
i encouter following code snippet, during try learn wpf.
((dependencyobject)targetobject).setvalue(dp, finalvalue);
what code snippet mean? know instance method setvalue going call, (dependencyobject) not understand. casting?
targetobject
cast dependencyobject
, setvalue
method of dependencyobject
type can called.
my guess targetobject
of type object, , doesn't have setvalue
method available - until cast.
if removed (dependencyobject)
, should become clear - object
type doesn't have setvalue
method.
Comments
Post a Comment