Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ObjectComplexPropertyMapping.cs
- AttributeProviderAttribute.cs
- ResponseStream.cs
- AppDomain.cs
- ApplicationActivator.cs
- EntitySqlException.cs
- _ProxyRegBlob.cs
- TargetParameterCountException.cs
- MenuItem.cs
- ValidatorUtils.cs
- SingleSelectRootGridEntry.cs
- ApplicationContext.cs
- RuleAttributes.cs
- TablePattern.cs
- EntityParameter.cs
- EntityDataSourceWrapper.cs
- HtmlTableRow.cs
- DictionaryEditChange.cs
- CertificateReferenceElement.cs
- FloaterBaseParagraph.cs
- safesecurityhelperavalon.cs
- XmlQueryRuntime.cs
- ConnectionStringsSection.cs
- GenerateTemporaryTargetAssembly.cs
- ExpandCollapseProviderWrapper.cs
- MenuBindingsEditorForm.cs
- SynchronizedInputPattern.cs
- AnnotationHelper.cs
- DropShadowEffect.cs
- ScriptResourceAttribute.cs
- X509CertificateChain.cs
- RIPEMD160Managed.cs
- ConsoleCancelEventArgs.cs
- XPathException.cs
- HWStack.cs
- SortExpressionBuilder.cs
- FilteredDataSetHelper.cs
- WebSysDescriptionAttribute.cs
- DispatcherOperation.cs
- DebugView.cs
- NestPullup.cs
- InfoCardRSACryptoProvider.cs
- ReflectEventDescriptor.cs
- QualificationDataAttribute.cs
- PhysicalAddress.cs
- TransformationRules.cs
- FixedFlowMap.cs
- MailAddress.cs
- RuleAttributes.cs
- XmlAtomicValue.cs
- DesignTimeTemplateParser.cs
- CaseInsensitiveComparer.cs
- SqlInternalConnectionTds.cs
- HttpFormatExtensions.cs
- ValidatingReaderNodeData.cs
- SchemaImporterExtensionElementCollection.cs
- PageThemeBuildProvider.cs
- CommandField.cs
- IndexedGlyphRun.cs
- TdsParameterSetter.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- BindingOperations.cs
- nulltextnavigator.cs
- OptimalTextSource.cs
- NavigationHelper.cs
- DBSchemaRow.cs
- ListViewItem.cs
- TemplateBindingExpression.cs
- SettingsBase.cs
- DataGridItem.cs
- ParallelActivityDesigner.cs
- DataSourceCache.cs
- TypeGeneratedEventArgs.cs
- DefaultPrintController.cs
- WorkflowServiceAttributesTypeConverter.cs
- ReferentialConstraint.cs
- PermissionSet.cs
- X509ImageLogo.cs
- DocumentSchemaValidator.cs
- PasswordBox.cs
- JsonDataContract.cs
- OutOfMemoryException.cs
- GridViewRowEventArgs.cs
- XamlPoint3DCollectionSerializer.cs
- RandomNumberGenerator.cs
- XhtmlBasicImageAdapter.cs
- ToolStripItemDesigner.cs
- WebCategoryAttribute.cs
- Guid.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- ScrollPatternIdentifiers.cs
- HtmlFormWrapper.cs
- _NetworkingPerfCounters.cs
- ContextStack.cs
- WebServiceClientProxyGenerator.cs
- Mappings.cs
- SoapAttributeAttribute.cs
- smtppermission.cs
- dataobject.cs
- Error.cs