Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / UI / DataBindingHandlerAttribute.cs / 1 / DataBindingHandlerAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Globalization; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class DataBindingHandlerAttribute : Attribute { private string _typeName; ////// public static readonly DataBindingHandlerAttribute Default = new DataBindingHandlerAttribute(); ////// public DataBindingHandlerAttribute() { _typeName = String.Empty; } ////// public DataBindingHandlerAttribute(Type type) { _typeName = type.AssemblyQualifiedName; } ////// public DataBindingHandlerAttribute(string typeName) { _typeName = typeName; } ////// public string HandlerTypeName { get { return (_typeName != null ? _typeName : String.Empty); } } ///public override bool Equals(object obj) { if (obj == this) { return true; } DataBindingHandlerAttribute other = obj as DataBindingHandlerAttribute; if (other != null) { return (String.Compare(HandlerTypeName, other.HandlerTypeName, StringComparison.Ordinal) == 0); } return false; } /// public override int GetHashCode() { return HandlerTypeName.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Globalization; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class DataBindingHandlerAttribute : Attribute { private string _typeName; ////// public static readonly DataBindingHandlerAttribute Default = new DataBindingHandlerAttribute(); ////// public DataBindingHandlerAttribute() { _typeName = String.Empty; } ////// public DataBindingHandlerAttribute(Type type) { _typeName = type.AssemblyQualifiedName; } ////// public DataBindingHandlerAttribute(string typeName) { _typeName = typeName; } ////// public string HandlerTypeName { get { return (_typeName != null ? _typeName : String.Empty); } } ///public override bool Equals(object obj) { if (obj == this) { return true; } DataBindingHandlerAttribute other = obj as DataBindingHandlerAttribute; if (other != null) { return (String.Compare(HandlerTypeName, other.HandlerTypeName, StringComparison.Ordinal) == 0); } return false; } /// public override int GetHashCode() { return HandlerTypeName.GetHashCode(); } } } // 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
- DataGridViewEditingControlShowingEventArgs.cs
- QilChoice.cs
- TextFormatterImp.cs
- ModelFunctionTypeElement.cs
- SerializerWriterEventHandlers.cs
- FileLevelControlBuilderAttribute.cs
- ProfileModule.cs
- Int64AnimationUsingKeyFrames.cs
- DBNull.cs
- util.cs
- UserValidatedEventArgs.cs
- MetadataCache.cs
- ToolStripDropDownClosedEventArgs.cs
- CodeComment.cs
- ForceCopyBuildProvider.cs
- EntityTypeEmitter.cs
- DataGridViewRowConverter.cs
- DocumentCollection.cs
- SpecularMaterial.cs
- RewritingPass.cs
- ManifestResourceInfo.cs
- AnonymousIdentificationSection.cs
- XmlNullResolver.cs
- FormsAuthenticationCredentials.cs
- filewebrequest.cs
- VirtualPathProvider.cs
- SqlRecordBuffer.cs
- BindingValueChangedEventArgs.cs
- ProcessManager.cs
- TextElementCollection.cs
- StrokeDescriptor.cs
- SqlMethodTransformer.cs
- UniqueConstraint.cs
- CompareInfo.cs
- StatusBar.cs
- TransactedBatchingBehavior.cs
- ToolStripDropDownButton.cs
- FixedHyperLink.cs
- Configuration.cs
- Msec.cs
- StaticFileHandler.cs
- DateTimeStorage.cs
- KeyEvent.cs
- XmlNamespaceManager.cs
- Encoder.cs
- EmptyControlCollection.cs
- HtmlTableCellCollection.cs
- ZipIOExtraField.cs
- TokenizerHelper.cs
- ShaderRenderModeValidation.cs
- ErrorActivity.cs
- DoubleLinkListEnumerator.cs
- Site.cs
- DbException.cs
- GlobalizationAssembly.cs
- XmlReader.cs
- Tokenizer.cs
- AssemblyHelper.cs
- ActiveXHelper.cs
- CachedTypeface.cs
- TranslateTransform3D.cs
- AuthenticationServiceManager.cs
- XmlSchemaImporter.cs
- XmlCompatibilityReader.cs
- XmlSchemaIdentityConstraint.cs
- WindowHelperService.cs
- RadioButtonDesigner.cs
- DataGridViewRowPrePaintEventArgs.cs
- TypeLoadException.cs
- SystemIcmpV4Statistics.cs
- SessionStateContainer.cs
- HtmlTextViewAdapter.cs
- RuleSettings.cs
- PersonalizationEntry.cs
- Funcletizer.cs
- ToolStripDropDownItem.cs
- ProxyWebPartManager.cs
- FreezableCollection.cs
- BrowserInteropHelper.cs
- BasePattern.cs
- SqlRowUpdatingEvent.cs
- ResourceAttributes.cs
- TemplateControlCodeDomTreeGenerator.cs
- DataGridColumn.cs
- ColumnTypeConverter.cs
- TextRangeSerialization.cs
- CompModSwitches.cs
- CatalogPartCollection.cs
- PolygonHotSpot.cs
- ConcurrentQueue.cs
- BrowserTree.cs
- SchemaConstraints.cs
- ReservationCollection.cs
- NamedPipeProcessProtocolHandler.cs
- DefaultValueConverter.cs
- FlowDocumentFormatter.cs
- StreamAsIStream.cs
- ClrPerspective.cs
- OutgoingWebRequestContext.cs
- NamespaceTable.cs