DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Properties | Private Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
Deveel.Data.Util.ProductInfo Class Reference

Properties

static ProductInfo Current [get]
 
string Title [get, private set]
 
string Copyright [get, private set]
 
string Company [get, private set]
 
Version Version [get, private set]
 
string Description [get, private set]
 

Private Member Functions

 ProductInfo ()
 

Static Private Member Functions

static ProductInfo GetProductInfo (Assembly assembly)
 

Static Private Attributes

static ProductInfo current
 

Detailed Description

Definition at line 23 of file ProductInfo.cs.

Constructor & Destructor Documentation

Deveel.Data.Util.ProductInfo.ProductInfo ( )
inlineprivate

Definition at line 24 of file ProductInfo.cs.

24  {
25  }

Member Function Documentation

static ProductInfo Deveel.Data.Util.ProductInfo.GetProductInfo ( Assembly  assembly)
inlinestaticprivate

Definition at line 49 of file ProductInfo.cs.

49  {
50  ProductInfo productInfo = new ProductInfo();
51 
52  object[] attributes = assembly.GetCustomAttributes(false);
53  for (int i = 0; i < attributes.Length; i++) {
54  object attr = attributes[i];
55  if (attr is AssemblyCopyrightAttribute)
56  productInfo.Copyright = ((AssemblyCopyrightAttribute)attr).Copyright;
57  else if (attr is AssemblyVersionAttribute)
58  productInfo.Version = new Version(((AssemblyVersionAttribute)attr).Version);
59  else if (attr is AssemblyCompanyAttribute)
60  productInfo.Company = ((AssemblyCompanyAttribute)attr).Company;
61  else if (attr is AssemblyTitleAttribute)
62  productInfo.Title = ((AssemblyTitleAttribute)attr).Title;
63  else if (attr is AssemblyDescriptionAttribute)
64  productInfo.Description = ((AssemblyDescriptionAttribute)attr).Description;
65  }
66 
67  return productInfo;
68  }

Member Data Documentation

ProductInfo Deveel.Data.Util.ProductInfo.current
staticprivate

summary> /summary>

Definition at line 27 of file ProductInfo.cs.

Property Documentation

string Deveel.Data.Util.ProductInfo.Company
getprivate set

Definition at line 43 of file ProductInfo.cs.

string Deveel.Data.Util.ProductInfo.Copyright
getprivate set

Definition at line 41 of file ProductInfo.cs.

ProductInfo Deveel.Data.Util.ProductInfo.Current
staticget

Definition at line 31 of file ProductInfo.cs.

string Deveel.Data.Util.ProductInfo.Description
getprivate set

Definition at line 47 of file ProductInfo.cs.

string Deveel.Data.Util.ProductInfo.Title
getprivate set

Definition at line 39 of file ProductInfo.cs.

Version Deveel.Data.Util.ProductInfo.Version
getprivate set

Definition at line 45 of file ProductInfo.cs.


The documentation for this class was generated from the following file: