CodeBlockBuilder.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / CodeBlockBuilder.cs / 1305376 / CodeBlockBuilder.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

/* 
 * Handle <%= ... %>, <% ... %>, <%# ... %>, <%: ... %> blocks 
 *
 * Copyright (c) 1998 Microsoft Corporation 
 */

namespace System.Web.UI {
 
using System;
using System.IO; 
 
internal class CodeBlockBuilder : ControlBuilder {
    protected CodeBlockType _blockType; 
    protected string _content;
    private int _column;

    internal CodeBlockBuilder(CodeBlockType blockType, string content, int lineNumber, int column, VirtualPath virtualPath) { 
        _content = content;
        _blockType = blockType; 
        _column = column; 

        Line = lineNumber; 
        VirtualPath = virtualPath;
    }

    public override object BuildObject() { 
        return null;
    } 
 
    internal /*public*/ string Content {
        get { 
            return _content;
        }
    }
 
    internal /*public*/ CodeBlockType BlockType {
        get { return _blockType;} 
    } 

    internal int Column { get { return _column; } } 
}

internal enum CodeBlockType {
    Code,               // <% ... %> 
    Expression,         // <%= ... %>
    DataBinding,        // <%# ... %> 
    EncodedExpression   // <%: ... %> 
}
 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK