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
- EntityContainerAssociationSetEnd.cs
- XPathParser.cs
- ListItemsPage.cs
- SoapConverter.cs
- ISessionStateStore.cs
- SubtreeProcessor.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- SqlOuterApplyReducer.cs
- UrlAuthorizationModule.cs
- dataprotectionpermission.cs
- RelatedImageListAttribute.cs
- GrammarBuilderDictation.cs
- AssemblyResourceLoader.cs
- ObjectQueryExecutionPlan.cs
- EncodedStreamFactory.cs
- OnOperation.cs
- srgsitem.cs
- FigureParagraph.cs
- returneventsaver.cs
- DesignerSelectionListAdapter.cs
- ScrollBar.cs
- FrameworkElementFactoryMarkupObject.cs
- TextOutput.cs
- EntityDesignerBuildProvider.cs
- StringAttributeCollection.cs
- MailAddressParser.cs
- Html32TextWriter.cs
- RegexMatchCollection.cs
- SynchronizationLockException.cs
- OutputCacheSection.cs
- DispatcherHookEventArgs.cs
- HtmlEmptyTagControlBuilder.cs
- RegexWorker.cs
- FixedStringLookup.cs
- DebuggerAttributes.cs
- IndexedString.cs
- FontUnit.cs
- MarkupProperty.cs
- SendKeys.cs
- Semaphore.cs
- DodSequenceMerge.cs
- DoubleLinkList.cs
- WhitespaceRuleReader.cs
- WebPartAddingEventArgs.cs
- ImageBrush.cs
- TextViewBase.cs
- LayoutTable.cs
- SoapTypeAttribute.cs
- MsmqAppDomainProtocolHandler.cs
- SystemResourceHost.cs
- BindToObject.cs
- FormViewDeletedEventArgs.cs
- ContentFilePart.cs
- ConnectionStringsExpressionBuilder.cs
- BasicCommandTreeVisitor.cs
- PropertyInformation.cs
- HttpProfileBase.cs
- RowUpdatingEventArgs.cs
- HtmlInputControl.cs
- UpdatePanelTrigger.cs
- ProviderMetadata.cs
- ItemsChangedEventArgs.cs
- QilXmlWriter.cs
- RelationshipFixer.cs
- Parser.cs
- ObjectViewQueryResultData.cs
- InputQueue.cs
- SimpleHandlerFactory.cs
- PackUriHelper.cs
- CollectionContainer.cs
- SamlAuthorizationDecisionStatement.cs
- XamlTypeWithExplicitNamespace.cs
- BatchStream.cs
- MappingMetadataHelper.cs
- handlecollector.cs
- ListenerAdapterBase.cs
- ArrayWithOffset.cs
- Matrix3DStack.cs
- SmiRecordBuffer.cs
- SqlNodeTypeOperators.cs
- CharKeyFrameCollection.cs
- SafeFileMappingHandle.cs
- StringFormat.cs
- ExtensionFile.cs
- UndirectedGraph.cs
- CodeSnippetTypeMember.cs
- MenuCommand.cs
- Sentence.cs
- HttpCapabilitiesEvaluator.cs
- XmlCharType.cs
- InternalPermissions.cs
- DataGridViewCellConverter.cs
- GZipDecoder.cs
- safelink.cs
- SamlAssertionKeyIdentifierClause.cs
- MiniLockedBorderGlyph.cs
- ColumnProvider.cs
- DocumentManager.cs
- SystemGatewayIPAddressInformation.cs
- StoreAnnotationsMap.cs