Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / CodeDOM / CodeSnippetCompileUnit.cs / 1 / CodeSnippetCompileUnit.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.CodeDom {
using System.Diagnostics;
using System;
using Microsoft.Win32;
using System.Collections;
using System.Runtime.InteropServices;
///
///
/// Represents a snippet block of code.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeSnippetCompileUnit : CodeCompileUnit {
private string value;
private CodeLinePragma linePragma;
public CodeSnippetCompileUnit() {
}
public CodeSnippetCompileUnit(string value) {
Value = value;
}
///
///
/// Gets or sets
/// the snippet
/// text of the code block to represent.
///
///
public string Value {
get {
return (value == null) ? string.Empty : value;
}
set {
this.value = value;
}
}
///
///
/// The line the code block starts on.
///
///
public CodeLinePragma LinePragma {
get {
return linePragma;
}
set {
linePragma = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.CodeDom {
using System.Diagnostics;
using System;
using Microsoft.Win32;
using System.Collections;
using System.Runtime.InteropServices;
///
///
/// Represents a snippet block of code.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeSnippetCompileUnit : CodeCompileUnit {
private string value;
private CodeLinePragma linePragma;
public CodeSnippetCompileUnit() {
}
public CodeSnippetCompileUnit(string value) {
Value = value;
}
///
///
/// Gets or sets
/// the snippet
/// text of the code block to represent.
///
///
public string Value {
get {
return (value == null) ? string.Empty : value;
}
set {
this.value = value;
}
}
///
///
/// The line the code block starts on.
///
///
public CodeLinePragma LinePragma {
get {
return linePragma;
}
set {
linePragma = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GeneralTransform3DGroup.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- BaseUriHelper.cs
- FtpCachePolicyElement.cs
- PathSegmentCollection.cs
- DesignerActionUIStateChangeEventArgs.cs
- AssemblyResourceLoader.cs
- CommonGetThemePartSize.cs
- _SSPIWrapper.cs
- HtmlShim.cs
- SystemColors.cs
- _LocalDataStore.cs
- DynamicActivityXamlReader.cs
- PreservationFileWriter.cs
- WebServiceTypeData.cs
- DefaultValidator.cs
- _AcceptOverlappedAsyncResult.cs
- StorageEntityTypeMapping.cs
- CompilerScope.Storage.cs
- PageThemeBuildProvider.cs
- CapabilitiesRule.cs
- FlowDocumentReaderAutomationPeer.cs
- SoapSchemaMember.cs
- Stopwatch.cs
- WorkflowViewService.cs
- BulletedList.cs
- SoapRpcMethodAttribute.cs
- AstTree.cs
- BufferModeSettings.cs
- HebrewCalendar.cs
- UnsafePeerToPeerMethods.cs
- ColumnMapProcessor.cs
- QueryGenerator.cs
- WebPartManagerInternals.cs
- OleDbCommand.cs
- AttachedAnnotationChangedEventArgs.cs
- XmlWrappingReader.cs
- OptimizerPatterns.cs
- Queue.cs
- StructuralObject.cs
- CookieProtection.cs
- DataColumnMappingCollection.cs
- DaylightTime.cs
- RadioButtonRenderer.cs
- EntityDataSourceQueryBuilder.cs
- FrameworkElementFactoryMarkupObject.cs
- StateMachineHistory.cs
- ChangesetResponse.cs
- MimeMapping.cs
- Error.cs
- IFlowDocumentViewer.cs
- FlowDocument.cs
- ToolstripProfessionalRenderer.cs
- HyperlinkAutomationPeer.cs
- SelectionEditor.cs
- BaseValidator.cs
- Double.cs
- RubberbandSelector.cs
- DatePicker.cs
- CodeMemberField.cs
- DomainLiteralReader.cs
- documentsequencetextcontainer.cs
- Container.cs
- __FastResourceComparer.cs
- RowToFieldTransformer.cs
- WeakReference.cs
- BehaviorEditorPart.cs
- ExtendedPropertyInfo.cs
- TabPage.cs
- Point3DAnimationUsingKeyFrames.cs
- KeyBinding.cs
- AdapterDictionary.cs
- NumericPagerField.cs
- SecurityElement.cs
- CheckBoxFlatAdapter.cs
- PrimaryKeyTypeConverter.cs
- XmlValidatingReader.cs
- AlignmentXValidation.cs
- InProcStateClientManager.cs
- MimeWriter.cs
- EnlistmentState.cs
- MexBindingElement.cs
- HtmlInputSubmit.cs
- HtmlShimManager.cs
- HttpProcessUtility.cs
- ViewLoader.cs
- ItemsPanelTemplate.cs
- SvcFileManager.cs
- TrackBarRenderer.cs
- LingerOption.cs
- Cell.cs
- SqlDataReader.cs
- CapabilitiesRule.cs
- AdornerPresentationContext.cs
- GPPOINT.cs
- SHA384.cs
- ListDictionary.cs
- ColorConverter.cs
- DocumentOrderQuery.cs
- ExeContext.cs