H
hazz
I have inherited code but don't know exactly what this one line of code is
doing? What it is the purpose of (ClassFileName)ClassFileName.........
Is it a cast? If it is, why is it? What are the mechanisms going on here?
thanks, -hazz
where ClassFileName looks like this;
[XmlRootAttribute("ClassFileName ",Namespace="http://www.xxx.com/1.0")]
public class ClassFileName : V.V.Internal.ClassFileNameBaseXmlSerializable
{
private Method m_oMethod;
public ClassFileName ()
{
m_oMethod = new Method();
}
public Method Method
{
get
{
return m_oMethod;
}
set
{
m_oMethod = value;
}
}
}
doing? What it is the purpose of (ClassFileName)ClassFileName.........
..CreateInstance(typeof(ClassFileName ),textBox1.Text);ClassFileName vs2 = (ClassFileName )ClassFileName
Is it a cast? If it is, why is it? What are the mechanisms going on here?
thanks, -hazz
where ClassFileName looks like this;
[XmlRootAttribute("ClassFileName ",Namespace="http://www.xxx.com/1.0")]
public class ClassFileName : V.V.Internal.ClassFileNameBaseXmlSerializable
{
private Method m_oMethod;
public ClassFileName ()
{
m_oMethod = new Method();
}
public Method Method
{
get
{
return m_oMethod;
}
set
{
m_oMethod = value;
}
}
}