System.Xml.Xsl.XsltOld.Avt.Evaluate C# (CSharp) Method

Evaluate() private method

private Evaluate ( Processor processor, ActionFrame frame ) : string
processor Processor
frame ActionFrame
return string
        internal string Evaluate(Processor processor, ActionFrame frame) {
            if (IsConstant) {
                Debug.Assert(constAvt != null);
                return constAvt;
            }
            else {
                Debug.Assert(processor != null && frame != null);

                StringBuilder builder = processor.GetSharedStringBuilder();

                for(int i = 0; i < events.Length; i ++) {
                    builder.Append(events[i].Evaluate(processor, frame));
                }
                processor.ReleaseSharedStringBuilder();
                return builder.ToString();
            }
        }

Usage Example

コード例 #1
0
 // For perf reason we precalculating AVTs at compile time.
 // If we can do this we set original AVT to null
 internal static string PrecalculateAvt(ref Avt avt) {
     string result = null;
     if(avt != null && avt.IsConstant) {
         result = avt.Evaluate(null, null);
         avt = null;
     }
     return result;
 }
All Usage Examples Of System.Xml.Xsl.XsltOld.Avt::Evaluate