Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Description / MetadataConversionError.cs / 1 / MetadataConversionError.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.ServiceModel.Description
{
using System.Collections.ObjectModel;
using System.ServiceModel.Channels;
public class MetadataConversionError
{
string message;
bool isWarning;
public MetadataConversionError(string message): this(message, false) { }
public MetadataConversionError(string message, bool isWarning)
{
if(message == null)
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("message");
this.message = message;
this.isWarning = isWarning;
}
public string Message { get { return message; } }
public bool IsWarning { get { return isWarning; } }
public override bool Equals(object obj)
{
MetadataConversionError otherError = obj as MetadataConversionError;
if (otherError == null)
return false;
return otherError.IsWarning == this.IsWarning && otherError.Message == this.Message;
}
public override int GetHashCode()
{
return message.GetHashCode();
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MenuItemBinding.cs
- ConfigurationManagerInternalFactory.cs
- FilterableAttribute.cs
- TableLayoutRowStyleCollection.cs
- DataControlImageButton.cs
- ReadOnlyDictionary.cs
- MasterPage.cs
- MouseActionValueSerializer.cs
- HostingPreferredMapPath.cs
- ComplexBindingPropertiesAttribute.cs
- HwndTarget.cs
- XmlNullResolver.cs
- MsmqException.cs
- WebBaseEventKeyComparer.cs
- PropertyDescriptor.cs
- COMException.cs
- CollectionChange.cs
- RelatedPropertyManager.cs
- UnsafeNativeMethods.cs
- AlternateViewCollection.cs
- DelegatedStream.cs
- BasicExpressionVisitor.cs
- RequestQueue.cs
- RPIdentityRequirement.cs
- AccessorTable.cs
- Keyboard.cs
- ListViewDeletedEventArgs.cs
- UIHelper.cs
- ToolStripItemRenderEventArgs.cs
- CLRBindingWorker.cs
- CodeBinaryOperatorExpression.cs
- BlurEffect.cs
- SystemEvents.cs
- MsmqIntegrationSecurityMode.cs
- RegisteredScript.cs
- AnnotationHighlightLayer.cs
- RowType.cs
- ObservableCollectionDefaultValueFactory.cs
- CompilerResults.cs
- DictionarySectionHandler.cs
- VisualTarget.cs
- DataGridViewCellValueEventArgs.cs
- TypeConverter.cs
- Activity.cs
- UseAttributeSetsAction.cs
- ObjectDataSourceMethodEventArgs.cs
- ComponentCommands.cs
- CuspData.cs
- BindingsCollection.cs
- HttpListenerResponse.cs
- StrongNamePublicKeyBlob.cs
- DragDropManager.cs
- CrossContextChannel.cs
- MasterPageParser.cs
- FontCollection.cs
- FormViewDeletedEventArgs.cs
- Activator.cs
- DelayLoadType.cs
- SecurityDocument.cs
- SingleSelectRootGridEntry.cs
- MarkerProperties.cs
- TraceContextRecord.cs
- SspiSafeHandles.cs
- DecimalAnimationBase.cs
- FilteredDataSetHelper.cs
- WaitForChangedResult.cs
- StructuredTypeEmitter.cs
- VirtualPath.cs
- Polyline.cs
- Floater.cs
- QueuePropertyVariants.cs
- SurrogateSelector.cs
- XmlSignificantWhitespace.cs
- X500Name.cs
- Executor.cs
- SizeConverter.cs
- ValidationPropertyAttribute.cs
- PeerCollaboration.cs
- ErrorBehavior.cs
- TextParagraphCache.cs
- HtmlShimManager.cs
- ClaimComparer.cs
- PopupControlService.cs
- Context.cs
- GcSettings.cs
- WSHttpTransportSecurityElement.cs
- AuthorizationRuleCollection.cs
- DBSchemaRow.cs
- HttpRuntimeSection.cs
- ExtendedPropertyDescriptor.cs
- ProcessStartInfo.cs
- CodeTypeReferenceCollection.cs
- ConfigurationLocation.cs
- RequestDescription.cs
- DoubleAnimationBase.cs
- HierarchicalDataTemplate.cs
- MethodBuilderInstantiation.cs
- ByteKeyFrameCollection.cs
- SmiEventSink.cs
- PersianCalendar.cs