[Mono-list] Editor and Designer Attribute, ISoapXsd Interface.
Alejandro Sánchez Acosta
raciel@x0und.net
18 Nov 2002 15:36:33 +0000
--=-U2g1HeS6xXD1xq5bigP9
Content-Type: multipart/mixed; boundary="=-qjKO+2Qh8Y567Q4IHFCc"
--=-qjKO+2Qh8Y567Q4IHFCc
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable
Hi!
I have made these attributes and one interface, can I commit?
--=20
Alejandro S=E1nchez Acosta <raciel@x0und.net>
Registered User #287692
--=-qjKO+2Qh8Y567Q4IHFCc
Content-Disposition: attachment; filename=EditorAttribute.cs
Content-Type: text/plain; name=EditorAttribute.cs; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable
//
// System.ComponentModel.EditorAttribute.cs
//
// Author:
// Alejandro S=E1nchez Acosta (raciel@es.gnu.org)
//
// (C) Alejandro S=E1nchez Acosta
//
namespace System.ComponentModel {
/// <summary>
/// Editor Attribute for classes.=20
/// </summary>
=09
string name;=09
string basename;
Type base;
Type nametype;
[AttributeUsage(AttributeTargets.All)]
public EditorAttribute()
{
this.name =3D "";
}
public EditorAttribute(string typeName, string baseTypeName)
{
name =3D typeName;
basename =3D baseTypeName;
}
public EditorAttribute(string typeName, Type baseType)
{
name =3D typeName;
base =3D baseType;=09
}
public EditorAttribute(Type type, Type baseType)
{
nametype =3D type;
base =3D baseType;
}
public string EditorBaseTypeName {
get
{
return basename;
}
}
=09
public string EditorTypeName {
get
{
return name;
}
}
public override object TypeId {
get
{
return this.GetType();
}
}
=09
public override bool Equals(object obj)
{
if (!(o is EditorAttribute))
return false;
return (((EditorAttribute) o).name =3D=3D name) &&
(((EditorAttribute) o).basename =3D=3D basename) &&
(((EditorAttribute) o).base =3D=3D base) &&
(((EditorAttribute) o).nametype =3D=3D nametype);
}
=09
public override int GetHashCode()
{
return base.GetHashCode ();
}
}
--=-qjKO+2Qh8Y567Q4IHFCc
Content-Disposition: attachment; filename=DesignerAttribute.cs
Content-Type: text/plain; name=DesignerAttribute.cs; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable
//
// System.ComponentModel.DesignerAttribute.cs
//
// Author:
// Alejandro S=E1nchez Acosta (raciel@es.gnu.org)
//
// (C) Alejandro S=E1nchez Acosta
//
namespace System.ComponentModel {
/// <summary>
/// Designer Attribute for classes.=20
/// </summary>
=09
/// <remarks>
/// </remarks>
=09
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)]
public sealed class DesignerAttribute : Attribute
{
string name;
string basetypename;
Type type;
Type basetype;
=09
public DesignerAttribute (string designerTypeName)
{
name =3D designerTypeName;
}
public DesignerAttribute(Type designerType)
{
type =3D designerType;
}
public DesignerAttribute(string designerTypeName, string designerBaseTyp=
eName)
{
name =3D designerTypeName;
basetypename =3D designerBaseTypeName;
}
public DesignerAttribute(string designerTypeName, Type designerBaseType)
{
name =3D designerTypeName;
basetype =3D designerBaseType;
}
public DesignerAttribute(Type designerType, Type designerBaseType)
{
type =3D designerType;
basetype =3D designerBaseType;
}
public string DesignerBaseTypeName=20
{
get
{
return basetype;
}
}
public string DesignerTypeName=20
{
get
{
return name;
}
}
public override object TypeId=20
{
get=20
{
return this.GetType();
}
}
=09
public override bool Equals(object obj)
{
if (!(o is DesignerAttribute))
return false;
return (((DesignerAttribute) o).name =3D=3D name) =
&&=20
(((DesignerAttribute) o).basetype =3D=3D basetype) &&
(((DesignerAttribute) o).type =3D=3D type) &&
(((DesignerAttribute) o).basetypename =3D=3D basetypename);
} =09
public override int GetHashCode()
{
return base.GetHashCode ();
}
}
--=-qjKO+2Qh8Y567Q4IHFCc
Content-Disposition: attachment; filename=ISoapXsd.cs
Content-Type: text/plain; name=ISoapXsd.cs; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable
// System.Runtime.Remoting.Metadata.W3cXsd2001.ISoapXsd.cs=20
//
// Author
// Alejandro S=E1nchez Acosta
//
// (C) Alejandro S=E1nchez Acosta
//
namespace System.Runtime.Remoting.Metadata.W3cXsd2001=20
{
/// <summary>
/// ISoapXsd Interface
/// </summary>
=09
public interface ISoapXsd
{
string GetXsdType();
}
}
--=-qjKO+2Qh8Y567Q4IHFCc--
--=-U2g1HeS6xXD1xq5bigP9
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Esta parte del mensaje esta firmada digitalmente
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQA92QkAsgoaWknonh4RAi7BAKCq64jgnB/D+HhOD81zQoADI0RUhwCgtn6o
uGYC7B69sh+E05JnJnkOe34=
=uYw5
-----END PGP SIGNATURE-----
--=-U2g1HeS6xXD1xq5bigP9--