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
- Typography.cs
- WindowsStartMenu.cs
- ObjRef.cs
- VisualStyleTypesAndProperties.cs
- SqlMethods.cs
- Message.cs
- OutputCacheProfile.cs
- ApplicationSecurityManager.cs
- PtsHost.cs
- VirtualizedItemProviderWrapper.cs
- KnownTypesHelper.cs
- EventWaitHandleSecurity.cs
- CollectionViewGroupRoot.cs
- Section.cs
- SecurityKeyIdentifierClause.cs
- InkCanvasAutomationPeer.cs
- Grammar.cs
- FixedPageStructure.cs
- FontStretchConverter.cs
- DeviceFilterEditorDialog.cs
- StrokeSerializer.cs
- ColorContextHelper.cs
- PerformanceCounterCategory.cs
- HostedNamedPipeTransportManager.cs
- SmtpReplyReaderFactory.cs
- Int16Animation.cs
- OleDbConnectionFactory.cs
- IndexedGlyphRun.cs
- UidPropertyAttribute.cs
- Knowncolors.cs
- DeflateInput.cs
- ITextView.cs
- Axis.cs
- bidPrivateBase.cs
- FileDialog.cs
- FillRuleValidation.cs
- XmlElementAttributes.cs
- TransformedBitmap.cs
- BitArray.cs
- DetailsViewUpdatedEventArgs.cs
- MimeBasePart.cs
- MappingException.cs
- RequestCachePolicy.cs
- WebPartPersonalization.cs
- ContextMenuService.cs
- SecurityTokenAuthenticator.cs
- ParamArrayAttribute.cs
- Calendar.cs
- KeyedPriorityQueue.cs
- IsolatedStorageException.cs
- FreezableCollection.cs
- SplayTreeNode.cs
- FragmentNavigationEventArgs.cs
- FusionWrap.cs
- DataGridViewRowHeaderCell.cs
- SqlDataSourceCache.cs
- OdbcFactory.cs
- PresentationTraceSources.cs
- BulletChrome.cs
- SimpleHandlerBuildProvider.cs
- RunWorkerCompletedEventArgs.cs
- AlignmentXValidation.cs
- ListBox.cs
- ItemCollection.cs
- SafeCertificateContext.cs
- UserNameSecurityTokenProvider.cs
- NominalTypeEliminator.cs
- Or.cs
- ProxyWebPartManager.cs
- MonitorWrapper.cs
- WebConfigurationFileMap.cs
- BoundPropertyEntry.cs
- CssStyleCollection.cs
- EventLogException.cs
- EventEntry.cs
- FocusTracker.cs
- C14NUtil.cs
- Frame.cs
- DeferrableContent.cs
- BackgroundWorker.cs
- TypeConstant.cs
- ButtonFlatAdapter.cs
- CodeDOMUtility.cs
- PropertyCollection.cs
- GetWinFXPath.cs
- XmlnsCache.cs
- PagedDataSource.cs
- ToolBar.cs
- XsltOutput.cs
- InternalBufferOverflowException.cs
- MouseButtonEventArgs.cs
- SmtpNtlmAuthenticationModule.cs
- UriParserTemplates.cs
- XslException.cs
- MimeFormImporter.cs
- XmlSerializableReader.cs
- FormattedText.cs
- PropertyDescriptorCollection.cs
- DelegatingConfigHost.cs
- CellParagraph.cs