Ejemplo n.º 1
0
        public string AddChild(PBXObject child)
        {
            if (child is PBXFileReference || child is PBXGroup)
            {
                children.Add(child.guid);
                return(child.guid);
            }

            return(null);
        }
Ejemplo n.º 2
0
        private bool SerializeString(string aString, StringBuilder builder)
        {
            // Is a GUID?
            if (PBXObject.IsGuid(aString))
            {
                builder.Append(aString);
                return(true);
            }

            // Is an empty string?
            if (string.IsNullOrEmpty(aString))
            {
                builder.Append(QUOTEDSTRING_BEGIN_TOKEN);
                builder.Append(QUOTEDSTRING_END_TOKEN);
                return(true);
            }

            builder.Append(aString);

            return(true);
        }