packages/Windows API Code Pack 1.1/source/Samples/DirectX/CS/UtilitiesLibrary/MeshLoader/XMeshLoader.XDataObject.cs
/// <summary>
/// Given a regex match for a data object, create a new <see cref="XDataObject" /> instance
/// for the text matched.
/// </summary>
/// <param name="groups">The match groups for the matched regex expression</param>
/// <returns>A new <see cref="XDataObject" /> instance based on the given regex match</returns>
Given a regex match for a data object, create a new  instance
for the text matched.
Given a regex match for a data object create a new instance for the text matched .
private XDataObject ExtractDataObject(GroupCollection groups)
            {
                string type = groups["type"].Value;
                string name = groups["name"].Value;
                string body = groups["body"].Value;
                string uuid;
                XDataObject dataObject;
                if (type == "template")
                {
                    dataObject = CreateTemplateObject(name, ref body, out uuid);
                }
                else
                {
                    uuid = ExtractUuid(ref body);
                    dataObject = new XDataObject(type, name, body, this);
                }
                RegisterObject(uuid, dataObject);
                return dataObject;
            }
private XDataObject ExtractDataObject ( GroupCollection groups ) { string type = groups [ " " ] . Value ; string name = groups [ " " ] . Value ; string body = groups [ " " ] . Value ; string uuid ; XDataObject dataObject ; if ( type == " " ) { dataObject = CreateTemplateObject ( name , ref body , out uuid ) ; } else { uuid = ExtractUuid ( ref body ) ; dataObject = new XDataObject ( type , name , body , this ) ; } RegisterObject ( uuid , dataObject ) ; return dataObject ; }
Given a regex match for a data object, create a new  instance
for the text matched.
Given a regex match for a data object create a new instance for the text matched .
A new  instance based on the given regex match
A new instance based on the given regex match
groups
GroupCollection
The match groups for the matched regex expression
The match groups for the matched regex expression