//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//------------------------------------------------------------------------------
/*
*/
namespace System.ComponentModel {
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Security.Permissions;
///
/// [To be supplied.]
///
[AttributeUsage(AttributeTargets.All)]
public sealed class ListBindableAttribute : Attribute {
///
/// [To be supplied.]
///
public static readonly ListBindableAttribute Yes = new ListBindableAttribute(true);
///
/// [To be supplied.]
///
public static readonly ListBindableAttribute No = new ListBindableAttribute(false);
///
/// [To be supplied.]
///
public static readonly ListBindableAttribute Default = Yes;
private bool listBindable = false;
private bool isDefault = false;
///
/// [To be supplied.]
///
public ListBindableAttribute(bool listBindable) {
this.listBindable = listBindable;
}
///
/// [To be supplied.]
///
public ListBindableAttribute(BindableSupport flags) {
this.listBindable = (flags != BindableSupport.No);
this.isDefault = (flags == BindableSupport.Default);
}
///
/// [To be supplied.]
///
public bool ListBindable {
get {
return listBindable;
}
}
///
/// [To be supplied.]
///
public override bool Equals(object obj) {
if (obj == this) {
return true;
}
ListBindableAttribute other = obj as ListBindableAttribute;
return other != null && other.ListBindable == listBindable;
}
///
///
/// Returns the hashcode for this object.
///
///
public override int GetHashCode() {
return base.GetHashCode();
}
///
/// [To be supplied.]
///
public override bool IsDefaultAttribute() {
return (this.Equals(Default) || isDefault);
}
}
}