Sofu Documentation
HasComment Method
NamespacesSofu.SofuSofuObjectHasComment()()()
Tests if this SofuObject has a comment.
Declaration Syntax
C#
public bool HasComment()
Return Value
True if there is a comment, false otherwise
Examples
CopyC#
Sofu.Sofu.Map file = SofuReader.LoadFile("file.sofu");
Consile.Out.WriteLine("The comment for this file is: ");
if (file.HasComment()) Console.Out.WriteLine(file.GetComment());
else Console.Out.WriteLine("File has no comment");

Assembly: Sofu (Module: Sofu) Version: 0.2.1.0 (0.2.1.0)