AcUtils
A high performance abstraction layer for AccuRev
PrncplDescriptionProvider.cs
Go to the documentation of this file.
1 
16 using System;
17 using System.ComponentModel;
18 
19 namespace AcUtils
20 {
24  [Serializable]
25  class PrncplDescriptionProvider : TypeDescriptionProvider
26  {
27  private ICustomTypeDescriptor td;
28 
30  : this(TypeDescriptor.GetProvider(typeof(AcUser)))
31  {
32  }
33 
34  public PrncplDescriptionProvider(TypeDescriptionProvider parent)
35  : base(parent)
36  {
37  }
38 
39  public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance)
40  {
41  if (td == null)
42  {
43  td = base.GetTypeDescriptor(objectType, instance);
44  td = new PrncplTypeDescriptor(td);
45  }
46 
47  return td;
48  }
49  }
50 }
Support TypeDescriptionProvider attribute on AcUser.
A user's AccuRev principal attributes name, ID, and status (active or inactive). In addition...
Definition: AcUsers.cs:37
Support TypeDescriptionProvider attribute on AcUser.