CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
MethodInfo.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="MethodInfo.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Maintains metadata about a method.</summary>
7//-----------------------------------------------------------------------
8using System;
9using System.Collections.Generic;
10using System.Linq;
11using System.Text;
12
13namespace Csla
14{
18 public class MethodInfo : Csla.Core.IMemberInfo
19 {
24 public MethodInfo(string name)
25 {
26 Name = name;
27 }
28
32 public string Name { get; private set; }
33
38 public override bool Equals(object obj)
39 {
40 var other = obj as MethodInfo;
41 if (other != null)
42 return Name == other.Name;
43 else
44 return false;
45 }
46
50 public override int GetHashCode()
51 {
52 return Name.GetHashCode();
53 }
54 }
55}
Maintains metadata about a method.
Definition: MethodInfo.cs:19
string Name
Gets the member name value.
Definition: MethodInfo.cs:32
MethodInfo(string name)
Creates an instance of the type.
Definition: MethodInfo.cs:24
override bool Equals(object obj)
Determines the equality of two objects.
Definition: MethodInfo.cs:38
override int GetHashCode()
Gets the hash code of this object.
Definition: MethodInfo.cs:50