IMergeTextUndoTransactionPolicy::TestCompatiblePolicy Method (IMergeTextUndoTransactionPolicy^)

 

Determines whether one IMergeTextUndoTransactionPolicy is compatible with another.

Namespace:   Microsoft.VisualStudio.Text.Operations
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

bool TestCompatiblePolicy(
	IMergeTextUndoTransactionPolicy^ other
)

Return Value

Type: System::Boolean

true if the policy is compatible, otherwise false.

Merging happens only when merge policies in primitives are compatible. This function should be symmetric and ideally constant time. For instance, (this.GetType() == other.GetType()).

Return to top
Show: