CodeBlockBuilder.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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         // <%# ... %> 
} 

} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.


                        

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