System.Xml.Xsl.IlGen.IteratorDescriptor.EnsureLocal C# (CSharp) Method

EnsureLocal() public method

Ensure that current item is saved to the specified local variable.
public EnsureLocal ( LocalBuilder bldr ) : void
bldr System.Reflection.Emit.LocalBuilder
return void
        public void EnsureLocal(LocalBuilder bldr) {
            if (this.storage.LocalLocation != bldr) {
                // Push value onto stack and then save to bldr
                EnsureStack();
                this.helper.Emit(OpCodes.Stloc, bldr);
                this.storage = this.storage.ToLocal(bldr);
            }
        }

Same methods

IteratorDescriptor::EnsureLocal ( string locName ) : void