CodeBlockBuilder.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / CodeBlockBuilder.cs / 1 / CodeBlockBuilder.cs

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

/* 
 * Handle <%= ... %>, <% ... %> and <%# ... %> 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         // <%# ... %> 
} 

} 


                        

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