public override void UpdateProps()
{
string ext = null;
if (this.m_ExplicitFileType != null)
{
base.SetPropertyString("explicitFileType", this.m_ExplicitFileType);
}
else if (this.m_LastKnownFileType != null)
{
base.SetPropertyString("lastKnownFileType", this.m_LastKnownFileType);
}
else
{
if (this.name != null)
{
ext = Path.GetExtension(this.name);
}
else if (this.m_Path != null)
{
ext = Path.GetExtension(this.m_Path);
}
if (ext != null)
{
if (FileTypeUtils.IsFileTypeExplicit(ext))
{
base.SetPropertyString("explicitFileType", FileTypeUtils.GetTypeName(ext));
}
else
{
base.SetPropertyString("lastKnownFileType", FileTypeUtils.GetTypeName(ext));
}
}
}
if (this.m_Path == this.name)
{
base.SetPropertyString("name", null);
}
else
{
base.SetPropertyString("name", this.name);
}
if (this.m_Path == null)
{
base.SetPropertyString("path", "");
}
else
{
base.SetPropertyString("path", this.m_Path);
}
base.SetPropertyString("sourceTree", FileTypeUtils.SourceTreeDesc(this.tree));
}