Skip to content

Should the names of components be case in-sensitive in expressions? #43

Answered by svenboulanger
DeadTomGC asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @DeadTomGC ,

Spice#.Behavioral will (or should) copy the behavior from the circuit and simulation it is working with.

To make the name of entities/components case-insensitive, you have to specify an IEqualityComparer<string> when creating the EntityCollection that stores the components. Any simulation that is run using this collection will use that comparer.

var ec = new EntityCollection(StringComparer.OrdinalIgnoreCase);
var circuit = new Circuit(ec); // Only necessary if you want circuit operations

In order to have case-insensitive node-names, you would have to specify a comparer for nodes in the BiasingParameters of a simulation. However, after looking into your question I can see t…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@svenboulanger
Comment options

@DeadTomGC
Comment options

@svenboulanger
Comment options

Answer selected by DeadTomGC
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants