Exemple #1
0
            public string Visit <TCoercionParent, TIntermediateCoercionParent>(IIntermediateBinaryOperatorCoercionMember <TCoercionParent, TIntermediateCoercionParent> intermediateMember, IntermediateNameRequestDetails context)
                where TCoercionParent : Abstract.ICoercibleType <Abstract.Members.IBinaryOperatorUniqueIdentifier, Abstract.Members.IBinaryOperatorCoercionMember <TCoercionParent>, TCoercionParent>
                where TIntermediateCoercionParent : IIntermediateCoercibleType <Abstract.Members.IBinaryOperatorUniqueIdentifier, Abstract.Members.IBinaryOperatorCoercionMember <TCoercionParent>, IIntermediateBinaryOperatorCoercionMember <TCoercionParent, TIntermediateCoercionParent>, TCoercionParent, TIntermediateCoercionParent>, TCoercionParent
            {
                string name = null;

                switch (context)
                {
                case IntermediateNameRequestDetails.TargetFileName:
                    if (this.HtmlContext)
                    {
                        name = string.Format("#binOp{0:X8}", intermediateMember.GetHashCode());
                    }
                    break;

                case IntermediateNameRequestDetails.DisplayName:
                    name = intermediateMember.Name;
                    break;

                case IntermediateNameRequestDetails.ReferenceName:
                    if (this.HtmlContext)
                    {
                        name = string.Format("binOp{0:X8}", intermediateMember.GetHashCode());
                    }
                    break;
                }
                return(name);
            }