[Mmclibrary-cvs] mmclibrary/MMCLib2/Core SnapinInfo.cs,1.3,1.4
Brought to you by:
imjimmurphy,
kachalkov
From: Lesley v. Z. <ex...@us...> - 2005-01-19 22:44:19
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib2/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32368 Modified Files: SnapinInfo.cs Log Message: Changed a lot of protected variables that where storage for properties to private Index: SnapinInfo.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Core/SnapinInfo.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** SnapinInfo.cs 22 Jul 2004 14:07:04 -0000 1.3 --- SnapinInfo.cs 19 Jan 2005 22:44:10 -0000 1.4 *************** *** 10,18 **** /// </summary> [AttributeUsage(AttributeTargets.Class)] ! public class SnapinInAttribute : System.Attribute { /////////////////////////////////////////////////////////////////////// // ! // Properties // #region --- 10,18 ---- /// </summary> [AttributeUsage(AttributeTargets.Class)] ! public sealed class SnapinInAttribute : System.Attribute { /////////////////////////////////////////////////////////////////////// // ! // Private vars // #region *************** *** 20,36 **** /// The name /// </summary> ! protected string m_name; /// <summary> /// The company name /// </summary> ! protected string m_provider; /// <summary> /// the snapin version /// </summary> ! protected string m_version; /// <summary> /// Standalon boolean /// </summary> ! protected bool m_standAlone; #endregion --- 20,36 ---- /// The name /// </summary> ! private string _name; /// <summary> /// The company name /// </summary> ! private string _provider; /// <summary> /// the snapin version /// </summary> ! private string _version; /// <summary> /// Standalon boolean /// </summary> ! private bool _standAlone; #endregion *************** *** 42,77 **** #region /// <summary> ! /// The name /// </summary> public string Namestring { ! get { return m_name; } ! set { m_name = value; } } /// <summary> ! /// Provider /// </summary> public string Provider { ! get { return m_provider; } ! set { m_provider = value; } } /// <summary> ! /// Version /// </summary> public string Version { ! get { return m_version; } } /// <summary> ! /// StandAlone /// </summary> public bool StandAlone { ! get { return m_standAlone; } ! set { m_standAlone = value; } } #endregion --- 42,77 ---- #region /// <summary> ! /// Get or set the Name /// </summary> public string Namestring { ! get { return _name; } ! set { _name = value; } } /// <summary> ! /// Get or set the Provider /// </summary> public string Provider { ! get { return _provider; } ! set { _provider = value; } } /// <summary> ! /// Get the version /// </summary> public string Version { ! get { return _version; } } /// <summary> ! /// Get or set if this snapin is standalone /// </summary> public bool StandAlone { ! get { return _standAlone; } ! set { _standAlone = value; } } #endregion *************** *** 82,94 **** // #region ! /// <summary> ! /// Default ctor initialize to begnin values ! /// </summary> public SnapinInAttribute() { ! m_name = "unknown"; ! m_provider = "unknown"; ! m_standAlone = true; ! m_version = null; } --- 82,94 ---- // #region ! /// <summary> ! /// Default ctor initialize to begnin values ! /// </summary> public SnapinInAttribute() { ! _name = "unknown"; ! _provider = "unknown"; ! _standAlone = true; ! _version = null; } *************** *** 100,107 **** public SnapinInAttribute(string namestring, string provider) { ! m_name = namestring; ! m_provider = provider; ! m_standAlone = true; ! m_version = null; } --- 100,107 ---- public SnapinInAttribute(string namestring, string provider) { ! _name = namestring; ! _provider = provider; ! _standAlone = true; ! _version = null; } *************** *** 114,121 **** public SnapinInAttribute(string namestring, string provider, string version) { ! m_name = namestring; ! m_provider = provider; ! m_standAlone = true; ! m_version = version; } --- 114,121 ---- public SnapinInAttribute(string namestring, string provider, string version) { ! _name = namestring; ! _provider = provider; ! _standAlone = true; ! _version = version; } *************** *** 129,136 **** public SnapinInAttribute(string namestring, string provider, string version, bool standAlone) { ! m_name = namestring; ! m_provider = provider; ! m_version = version; ! m_standAlone = standAlone; } #endregion --- 129,136 ---- public SnapinInAttribute(string namestring, string provider, string version, bool standAlone) { ! _name = namestring; ! _provider = provider; ! _version = version; ! _standAlone = standAlone; } #endregion *************** *** 139,171 **** /// <summary> ! /// Custom attribute applied to snapin about classes. The presence ! /// of this attribute identifies it to the snapin registration utility and ! /// associates attribute required during snapin installation to the ! /// registry. ! /// </summary> [AttributeUsage(AttributeTargets.Class)] ! public class AboutSnapinAttribute : System.Attribute { ! /// <summary> ! /// The type of the snapin we refer to. we can pull data from ! /// the type by reflection ! /// </summary> ! protected Type m_SnapinType; ! /// <summary> ! /// Ctor ! /// </summary> ! /// <param name="type"></param> ! public AboutSnapinAttribute(Type type) { ! m_SnapinType = type; } ! /// <summary> ! /// Get the Type the snapin is based on ! /// </summary> public Type SnapinType { ! get { return m_SnapinType; } } } --- 139,171 ---- /// <summary> ! /// Custom attribute applied to snapin about classes. The presence ! /// of this attribute identifies it to the snapin registration utility and ! /// associates attribute required during snapin installation to the ! /// registry. ! /// </summary> [AttributeUsage(AttributeTargets.Class)] ! public sealed class AboutSnapinAttribute : System.Attribute { ! /// <summary> ! /// The type of the snapin we refer to. we can pull data from ! /// the type by reflection ! /// </summary> ! private Type _SnapinType; ! /// <summary> ! /// Ctor ! /// </summary> ! /// <param name="type"></param> ! public AboutSnapinAttribute(Type type) { ! _SnapinType = type; } ! /// <summary> ! /// Get the Type the snapin is based on ! /// </summary> public Type SnapinType { ! get { return _SnapinType; } } } |