packages/Windows API Code Pack 1.1/source/Samples/DirectX/CS/UtilitiesLibrary/MeshLoader/XMeshLoader.XDataObject.cs
/// <summary>
/// The actual implementation to extract data objects from input text complying with the .x file format.
/// </summary>
/// <param name="inputText">The text to parse</param>
/// <returns>An enumeration of <see cref="IXDataObject" /> instances represented within the .x file text.</returns>
The actual implementation to extract data objects from input text complying with the .x file format.
The actual implementation to extract data objects from input text complying with the . x file format .
private IEnumerable<IXDataObject> ExtractDataObjectsImpl(ref string inputText)
            {
                IEnumerable<IXDataObject> dataObjects =
                    ExtractByRegex<IXDataObject>(ref inputText, dataObjectRegex, ExtractDataObject);
                IEnumerable<IXDataObject> dataReferences =
                    ExtractByRegex<IXDataObject>(ref inputText, bodyReferenceRegex, groups =>
                    {
                        if (groups["uuid"].Success)
                        {
                            return objectDictionary[groups["uuid"].Value];
                        }
                        return objectDictionary[groups["name"].Value];
                    });
                return dataObjects.Concat(dataReferences);
            }
private IEnumerable < IXDataObject > ExtractDataObjectsImpl ( ref string inputText ) { IEnumerable < IXDataObject > dataObjects = ExtractByRegex < IXDataObject > ( ref inputText , dataObjectRegex , ExtractDataObject ) ; IEnumerable < IXDataObject > dataReferences = ExtractByRegex < IXDataObject > ( ref inputText , bodyReferenceRegex , groups => { if ( groups [ " " ] . Success ) { return objectDictionary [ groups [ " " ] . Value ] ; } return objectDictionary [ groups [ " " ] . Value ] ; } ) ; return dataObjects . Concat ( dataReferences ) ; }
The actual implementation to extract data objects from input text complying with the .x file format.
The actual implementation to extract data objects from input text complying with the . x file format .
An enumeration of  instances represented within the .x file text.
An enumeration of instances represented within the . x file text .
string
ref
inputText
The text to parse
The text to parse