Exemple #1
0
 private static string CreateFullName(Type declaringType, TypeIdentifier declaringTypeId, Identifier name)
 {
     if (name.IsDefined)
     {
         return((declaringType != null ? declaringType.Name : declaringTypeId.SimpleName) + "." + name.Name);
     }
     return(string.Empty);
 }
Exemple #2
0
 public EventIdentifier(TypeIdentifier declaringTypeId, string name)
 {
     if (name == null)
     {
         throw new ArgumentNullException("name");
     }
     if (declaringTypeId.IsEmpty)
     {
         throw new ArgumentNullException("declaringTypeId");
     }
     this._declaringType   = (Type)null;
     this._declaringTypeId = declaringTypeId;
     this._name            = Identifier.For(name);
 }
Exemple #3
0
 public EventIdentifier(Type declaringType, string name)
 {
     if (name == null)
     {
         throw new ArgumentNullException("name");
     }
     if (declaringType == null)
     {
         throw new ArgumentNullException("declaringType");
     }
     this._declaringType   = declaringType;
     this._declaringTypeId = new TypeIdentifier();
     this._name            = Identifier.For(name);
 }
Exemple #4
0
 public PropertyIdentifier(TypeIdentifier declaringTypeId, string name)
 {
     if (name == null)
     {
         throw new ArgumentNullException("name");
     }
     if (declaringTypeId.IsEmpty)
     {
         throw new ArgumentNullException("declaringTypeId");
     }
     this._declaringType   = (Type)null;
     this._declaringTypeId = declaringTypeId;
     this._name            = Identifier.For(name);
     this._fullName        = PropertyIdentifier.CreateFullName(this._declaringType, this._declaringTypeId, this._name);
 }
Exemple #5
0
 public PropertyIdentifier(Type declaringType, string name)
 {
     if (declaringType == null)
     {
         throw new ArgumentNullException("declaringType");
     }
     if (name == null)
     {
         throw new ArgumentNullException("name");
     }
     this._declaringType   = declaringType;
     this._declaringTypeId = new TypeIdentifier();
     this._name            = Identifier.For(name);
     this._fullName        = PropertyIdentifier.CreateFullName(this._declaringType, this._declaringTypeId, this._name);
 }