This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static XmlDocument ToXml(object thisObj) | |
| { | |
| XmlDocument propertyDoc = new XmlDocument(); | |
| XmlNode rootNode = propertyDoc.CreateElement(thisObj.GetType().Name.Replace("[]", "Array")); | |
| propertyDoc.AppendChild(rootNode); | |
| if (thisObj.GetType().IsArray) | |
| { | |
| Array objects = (Array)thisObj; | |
| foreach (object obj in objects) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private static string ConvertInFixToPostFix(string inFixExpression) | |
| { | |
| if (inFixExpression == null || inFixExpression.Trim().Length == 0) | |
| return inFixExpression; | |
| inFixExpression = inFixExpression.Replace("(", " ( "); | |
| inFixExpression = inFixExpression.Replace(")", " ) "); | |
| inFixExpression = inFixExpression.ToLower(); | |
| string[] tokens = inFixExpression.Split(new string[] { }, StringSplitOptions.RemoveEmptyEntries); | |
| if (tokens.Length == 0 || tokens.Length == 1) |
NewerOlder