public ListBindingTranslatable( MemberListBinding listBinding, MemberBindingInitializerTranslationSet parent, ITranslationContext context) { _memberName = listBinding.Member.Name; _initializerTranslations = new ListInitializerSetTranslation(listBinding.Initializers, context); _parent = parent; EstimatedSize = _memberName.Length + 2 + _initializerTranslations.EstimatedSize; }
public MemberBindingTranslatable( MemberMemberBinding memberBinding, MemberBindingInitializerTranslationSet parent, ITranslationContext context) { _memberName = memberBinding.Member.Name; _bindingTranslations = new MemberBindingInitializerTranslationSet(memberBinding.Bindings, context); _parent = parent; EstimatedSize = _memberName.Length + 2 + _bindingTranslations.EstimatedSize; }