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); }
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); }
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); }
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); }
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); }